Closed 0xTheProDev closed 7 years ago
int sprintf(char * str, const char * format, ...); int snprintf(char * str, size_t size, const char * format, ...);
snprintf only prints upto size_t size value avoiding overflow error!
snprintf
size_t size
Prototype
Advantage
snprintf
only prints uptosize_t size
value avoiding overflow error!Reference