snprintf1 snprintf int snprintf(char *str, size_t n, const char *fmt, ...) #include #include #include #include #include "local.h" int snprintf(char *str, size_t n, const char *fmt, ...) { va_list ap; int ret; char dummy; FILE f; struct __sfileext fext; /* While snprintf(3) specifies size_t stdio uses an int internally */ if (n > INT_MAX) n = INT_MAX; /* Stdio internals do not deal correctly with zero length buffer.. 2016. 7. 9. 이전 1 다음