Main Page   Modules   File List   Related Pages   Examples  

main-simple.cpp

This example shows how error() can be used.

#include <stdio>                // for EXIT_FAILURE
#include "tools.h"              // for setprogname(), error()

int main( int argc, char *argv[] )
{
   setprogname( basename( argv[0] ) );

   if ( argc <= 1 )
      return error( EXIT_FAILURE, "input output" );

   // ...
}



Generated on Tue Apr 29 11:20:45 2003 for Edit Env by doxygen 1.3