1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 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; }