APL\360

Chuck Guzis cclist at sydex.com
Fri Jan 29 17:34:06 CST 2021


In the past (and occasionally today, I use the following construct:

FILE *myfile;

if ( !(myfile = fopen( filename, "r"))
{
  fprintf( stderr, "Couldn\'t open %s - exiting\n", filename);
  exit (1);
}

Yes, it only saves a line, but neatly describes what's being done.

--Chuck


More information about the cctalk mailing list