| Julia,
Your solution is probably what the teacher is looking for, he's not thinking of you as knowing every part in programming, thus this slow approach.
But you don't need to include string.h and stdlib.h those were only needed in my program, to access strcpy(char *s1, const char *s2); malloc(size_t size) and free(void *ptr)
Good job on the giving it a try part, thats half the work.. |