"copying" strings into other array

cat-town
Dan Buch 13 years ago
parent 933a9a04fc
commit 1a1c89af7a

@ -20,5 +20,12 @@ int main(int argc, char *argv[])
i++;
}
i = 0;
while(i < num_states) {
states[i] = argv[i];
printf("copied %s into state %d\n", states[i], i);
i++;
}
return 0;
}

Loading…
Cancel
Save