Skip to content

Commit

Permalink
Readd static
Browse files Browse the repository at this point in the history
  • Loading branch information
hensldm committed Feb 24, 2024
1 parent 68f6285 commit 3c07630
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libc/sprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ int sprintf(char* s, const char* fmt, ...) {
}
return ans;
}
void* proutSprintf(void* s, const char* buf, size_t n) {

static void* proutSprintf(void* s, const char* buf, size_t n) {
return (char*)memcpy((u8*)s, (u8*)buf, n) + n;
}

0 comments on commit 3c07630

Please sign in to comment.