printf한 결과를 포인터에 집어넣는다.
#include <stdio.h> int sprintf(char *restrict s, const char *restrict format, ...);