clean up stb_sprintf; implementation of fprintf et al, remove
This commit is contained in:
parent
f7a8a193c2
commit
d0d868433e
5 changed files with 167 additions and 57 deletions
|
@ -1,10 +1,8 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
char buf[200] = {0};
|
||||
snprintf(buf, sizeof buf, "Hello, %d %.2f %g %s %p\n", 187, 77.3, 349e12, "Wow!", "yea");
|
||||
/* write(1, buf, sizeof buf); */
|
||||
printf("%s\n",buf);
|
||||
printf("%s\n",remove("test_file")?"failure":"success");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue