Originally Posted by
owi_just
i must be doing something else wrong then, maybe its outside the function
possibly. feel free to post your full code, assuming it is not too long. In the meantime, about this function.. test it out on its own. Open a new .c file, and type the following...
Code:
#include <stdio.h>
int main()
{
int test=0;
printf("How many lines do you want to store?: ");
scanf("%d", &test);
while (test == 0)
{
printf("\n");
printf("Cant enter zero, try again: ");
scanf("%d", &test);
}
printf("\nThe number of lines is: %d\n", test);
return 0;
}
Compile that and run it. Hope now its starting to make some sense.