Question: what library is sprintf in?
Answer: The C library function int sprintf(char *str, const char *format, ...) sends formatted output to a string pointed to, by str.