Skip to content

Commit

Permalink
Make test-bsp-ffi into hello
Browse files Browse the repository at this point in the history
  • Loading branch information
hegza committed May 16, 2024
1 parent ffdef00 commit b9590dd
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions examples/hpc-c/test-bsp-ffi/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,18 @@
#include "boot.h"
#include "headsail_bsp.h"

int main() {
const char *str = "Hello world (bsp::putc)";
int main()
{
const char *hello = "Hello world!";
const char *str2 = "This is the BSP printing.";

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

return 0;
Expand Down

0 comments on commit b9590dd

Please sign in to comment.