Skip to content

Commit 6eafb4f

Browse files
Merge pull request #479 from Wuerfel21/W21-libca-snprintf
Add missing sized sprintf variants to libc.a
2 parents fe2e23e + 172baeb commit 6eafb4f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/libc.a

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ void perror(const char *) __fromfile("libc/stdio/perror.c");
9595
/* libc/stdio/sprintf.c */
9696
int sprintf(char *str, const char *format, ...) __fromfile("libc/stdio/sprintf.c");
9797
int vsprintf(char *str, const char *format, unsigned long ap) __fromfile("libc/stdio/sprintf.c");
98+
int snprintf(char *str, size_t size, const char *format, ...) __fromfile("libc/stdio/sprintf.c");
99+
int vsnprintf(char *str, size_t size, const char *format, unsigned long ap) __fromfile("libc/stdio/sprintf.c");
98100

99101
/* libc/stdlib/abort.c */
100102
void abort(void) __fromfile("libc/stdlib/abort.c");

0 commit comments

Comments
 (0)