아무래도 sprintf가 C 표준이니까 호환성에 문제가 없다.
itoa를 사용하려고 하는데 리눅스에서 잘 안 되는 거 같아서..
예제)
main()
{
char buf[30];
int a = 200
sprintf(buf,”%d”, a);
printf(“%s”, buf);
}
Filed under: C, Linux, library, 개발, 라이브러리
Name (required)
E-mail (will not be published) (required)
Website
Notify me of follow-up comments via email.