main() function is have tow paras like this : argv[], argc
int main(argv[],argc).
ITYM
int main(int argc, char *argv[])
you can confirm if user input "<" character in DOS prompt.while argv[] was contain a "<" char , you can create a file and save input strings in it.
Redirection will not pass the redirection operator.
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314