func:  main(int argc, char **argv) char * userstr ; if ( argc > 1 )  userstr = argv [ 1 ]; test ( userstr );  test(char *str) char buf [ MAXSIZE ] ; strncpy ( buf , str , sizeof buf ); buf [ MAXSIZE - 1 ] = '\0'; printf ( "result: %s\n" , buf ); 