char *strncpy( char *dest, const char *src, size_t count ); ... char copy[40] = { 0 }; /* no buffer overflow */ strncpy(copy, str, sizeof(copy)-1); ...
確定! 回上一頁