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
14
05/string.h
Normal file
14
05/string.h
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue