Hi, I need to write a simple crytographic function and in the main file that calls the crypt function I need to write, the last set of statements is an if statements as such:
if(isatty(fileno(stdout)))
cout << endl;
so I read up and isatty is to indicate the file descriptor that is returned:
0 - stdin, 1 - stdout, 2 - stderr, but what is the purpose in terms of this cryptographic program I am supposed to write.