diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2018-02-20 22:21:46 -0500 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2018-02-20 22:21:46 -0500 |
commit | f414175e0cf08e02d65ca09028641ac2adbd0f8e (patch) | |
tree | 76637b32274f64975b4d225aea6573681b5dc9fe /stdlib.c | |
parent | 5d85baa270b046eedf472d4cb851fe17fb608fc5 (diff) |
stdlib independence, fixes for calculator
Diffstat (limited to 'stdlib.c')
-rw-r--r-- | stdlib.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/stdlib.c b/stdlib.c new file mode 100644 index 0000000..3299d0b --- /dev/null +++ b/stdlib.c @@ -0,0 +1,21 @@ +#include <stdarg.h> + +char *snprintf(char *buf, unsigned int max, const char *format, ...) +{ + (void)max; + va_list args; + va_start(args, format); + + buf[0] = '0'; + buf[1] = '\0'; + + va_end(args); + return buf; +} + +float strtof(const char *s, char **endptr) +{ + (void)s; + (void)endptr; + return 0.0f; +} |