Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のコードは、マッチ 2 の内容をキー [0] にコピーしません。どうしてこんなことに?
char **keys; char matches[2000]; char *matches2; matches2 =strtok(matches," "); strncpy(keys[0],matches2, sizeof keys[0]);