* \{
*/
extern int vsnprintf(char *__s, size_t __maxlen, const char *__format, va_list args);
+extern size_t snprintf(char *__s, size_t __n, const char *__format, ...);
extern int sprintf(char *__s, const char *__format, ...);
extern size_t strlen(const char *Str);
extern char *strcpy(char *__dest, const char *__src);
// === PROTOTYPES ===
#if 0
int atoi(const char *string);
+ int ParseInt(const char *string, int *Val);
void itoa(char *buf, Uint64 num, int base, int minLength, char pad);
int vsnprintf(char *__s, size_t __maxlen, const char *__format, va_list args);
+size_t snprintf(char *__s, size_t __n, const char *__format, ...);
int sprintf(char *__s, const char *__format, ...);
#endif
int tolower(int c);
}
#undef PUTCH
+/**
+ */
+size_t snprintf(char *__s, size_t __n, const char *__format, ...)
+{
+ va_list args;
+ int ret;
+
+ va_start(args, __format);
+ ret = vsnprintf(__s, __n, __format, args);
+ va_end(args);
+
+ return ret;
+}
+
/**
*/
int sprintf(char *__s, const char *__format, ...)