#include <stdio.h> int main( void ) { char *str; str = (char *)malloc( strlen("hello, world!") ); strncpy( str, "hello, world!", strlen("hello, world!") ); printf( "%s\n", str ); return 0; }
너 자신을 알라.
테스트
- 나는 소크라테스이다.
[/][/]