sprintf working! (but not snprintf ...)
This commit is contained in:
parent
2fef698195
commit
b9fd2a2b9c
7 changed files with 1724 additions and 65 deletions
|
@ -1,4 +1,10 @@
|
|||
#ifndef _STDARG_H
|
||||
#define _STDARG_H
|
||||
|
||||
typedef unsigned long va_list;
|
||||
|
||||
#define va_start(list, arg) ((list) = (unsigned long)&arg)
|
||||
#define va_arg(list, type) (*((type *)(list += ((sizeof(type) + 7) & 0xfffffffffffffff8))))
|
||||
#define va_end(list)
|
||||
|
||||
#endif // _STDARG_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue