View Single Post
Old 10-05-2004, 01:42 AM   #22 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,736
redhead is on a distinguished road
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..
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote