From 1a1c89af7aa7ffe6fa6de724a977f6472355757e Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Sat, 10 Sep 2011 00:29:54 -0400 Subject: [PATCH] "copying" strings into other array --- ex11.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ex11.c b/ex11.c index 19fb531..7ff7988 100644 --- a/ex11.c +++ b/ex11.c @@ -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; }