Originally Posted by tabstop
@quzah...Here is a complete main:
EDIT::: you will have to remove the function calls if you want it to compile.
and here is the output I get when using %ld
head = NULL;
tail = head;
int num, i, startRange, endRange;
printf("\nseed: %ld\n", seed);
scanf("%d %d\n", &startRange, &endRange);
printf("beg: %d end: %d", startRange, endRange);
} //end main
@tabstop...I realize that if I type 1234567 and hit enter, I can hit enter as many times as I want but when I enter 1234567 a second time it prints another new line and then asks for the range...however I thought the format string "%ld\n" means a long terminated by the enter key...
range: 1 9999
beg: 1234567 end: 1[mattsoma@athena:36]>