snprintf now working! (fixed problem will calls inside calls)
This commit is contained in:
parent
1f9534d750
commit
f7a8a193c2
5 changed files with 44 additions and 8 deletions
|
@ -63,4 +63,10 @@ long write(int fd, void *buf, size_t count) {
|
|||
__syscall(1, fd, buf, count, 0, 0, 0);
|
||||
}
|
||||
|
||||
size_t strlen(char *s) {
|
||||
char *t = s;
|
||||
while (*t) ++t;
|
||||
return t - s;
|
||||
}
|
||||
|
||||
#endif // _STDC_COMMON_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue