Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partial Libc #51

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove debug printf
Voidler-cell committed Feb 21, 2024
commit fb0e7cf1aa592feeccd37760db8242f76bf39dc8
5 changes: 1 addition & 4 deletions examples/libc/time.c
Original file line number Diff line number Diff line change
@@ -21,12 +21,9 @@ void GameFrame()
const int ch = h / 2 - (font_size / 2);

time_t t = time(NULL);
printf("%lli\n", t);

struct tm *ts = localtime(&t);
printf("%i\n", ts->tm_mday);

char *time_text = asctime(ts); // ctime(&t);
char *time_text = asctime(ts);
sprintf(buf, "%s%c", time_text, '\0');

size_t text_size = MeasureText(buf, font_size);
Binary file modified wasm/libc_time.wasm
Binary file not shown.