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.
Reputation Points: 2780
Solved Threads: 312
long time no c
Offline 4,790 posts
since Apr 2004