Skip to content

Commit

Permalink
C: fix print bug & clean LEs
Browse files Browse the repository at this point in the history
  • Loading branch information
hegza committed May 16, 2024
1 parent 3abad49 commit 3af894f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/hpc-c/hello-hpc/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ void putc(char ch)

int main()
{
const char *str = "Hello world!";
const char *str = "Hello world!\r\n";

for (int i = 0; i < strlen(str); i++)
{
Expand Down
6 changes: 3 additions & 3 deletions examples/hpc-c/test-bsp-ffi/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@

int main()
{
const char *hello = "Hello world!";
const char *str2 = "This is the BSP printing.";
const char *hello = "Hello world!\r\n";
const char *str2 = "This is the BSP printing.\r\n";

for (int i = 0; i < strlen(hello); i++)
{
putc(hello[i]);
}
for (int i = 0; i < strlen(str2); i++)
{
putc(hello[i]);
putc(str2[i]);
}

return 0;
Expand Down

0 comments on commit 3af894f

Please sign in to comment.