clean up stb_sprintf; implementation of fprintf et al, remove

This commit is contained in:
pommicket 2022-02-14 12:04:49 -05:00
parent f7a8a193c2
commit d0d868433e
5 changed files with 167 additions and 57 deletions

14
05/string.h Normal file
View file

@ -0,0 +1,14 @@
#ifndef _STRING_H
#define _STRING_H
#include <stdc_common.h>
void *memset(void *s, int c, size_t n) {
char *p = s, *end = p + n;
while (p < end)
*p++ = c;
return s;
}
#endif // _STRING_H