Hi fellows,
I have little program here that I want to incorprate some more
commandline arguments and it would be run this way:
<proramname> rounds FFFFF ENC < fileIn > fileOut
-------- ------- -----
rounds = number of rounds in a loop
FFFFFF = hex value used as key
ENC = means to be encrypted
the underlined args are the new ones and also would like to
use in loop as stopping condition.
can anyone tell me how can incoorprate the 3 more args ?
thanks in advance.
here is tha program:
Code:
code
/* Function: Open files */
bool open_files (FILE *infile, FILE *outfile)
{
bool retval;
infile = fopen ("test.txt", "r");
outfile = fopen ("res.txt", "w");
if (infile == NULL || outfile == NULL)
{
close_files (infile, outfile);
retval = false;
}
else
{
retval = true;
}
return retval;
}