because i feel more at home here than at stackoverflow.

Code:
int get_input(char input[])
{
        int value=0;
 
        while((input[value]=getchar())!='\n')
        {
                value++;
        }
        printf("value=%d",value); /*when Anything with a space at the start or more than one space elsewhere is         entered it causes the program to crash before getting here.*/
        input[value++]='\0';
        return value;
}
so for instance, on windows command line i'll type in

what what
(ie. four spaces in front of the first what, three between the two words and three after that.

and it just freezes up and i need to ctrl+c out.

on linux command line it at least gives me more than that. it gives me a segmentation fault.

i assume the problem has to do with all those spaces being turned into newline characters or something, but i thought i'd try to get confirmation on that before i go ripping this up and trying to think of another solution.