printing an array of strings
I have this code and I just can't figure out why it won't work the way I want it to. I have a valid array of strings that I have already verified, but when I pass it to the function and it tries to print, all I get is one line of garbage.
the first puts() prints correctly, but the for loop just prints one line of garbage. MAX is 10 and LIM is 81, n is equal to the number of strings in the array.
void printlist(char star[MAX][LIM], int n)
int ct = 4;
for (ct = 0; ct < n; ct++);
EDIT: DANG I feel so stupid. I just found that stupid semicolon blatantly staring me in the face right after the for declaration. wonder why my compiler didn't give me any errors... haha i'm still learning :)