is there a way to check stdin for more data without asking for more? a file when read in through the "<" symbol appears in stdin. or i can read answers from a person instead of a file. i use this command for file input:
and this command for regular input:Code:fscanf(stdin,"%[^\0]",input);
i need a way to test the stdin to see if it's done without asking for more data. any ideas?Code:fscanf(stdin,"%[^\n]",input); // or something equivalent using fgets