Back to index

radiance  4R0+20100331
Functions | Variables
ev.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include "calcomp.h"
#include "rterror.h"

Go to the source code of this file.

Functions

int main (int argc, argv)
void eputs (char *msg)
void wputs (char *msg)
void quit (int code)

Variables

static const char RCSid [] = "$Id: ev.c,v 1.7 2008/09/11 05:34:47 greg Exp $"

Function Documentation

void eputs ( char *  msg)

Definition at line 45 of file ev.c.

{
       fputs(msg, stderr);
}
int main ( int  argc,
argv   
)

Definition at line 19 of file ev.c.

{
       int  i;

       esupport |= E_FUNCTION;
       esupport &= ~(E_VARIABLE|E_INCHAN|E_OUTCHAN|E_RCONST);

#ifdef  BIGGERLIB
       biggerlib();
#endif

       errno = 0;
       for (i = 1; i < argc; i++)
              printf("%.9g\n", eval(argv[i]));

       if (errno != EDOM && errno != ERANGE)
              errno = 0;

       quit(errno ? 2 : 0);
       return (errno ? 2 : 0); /* pro forma return */
}

Here is the call graph for this function:

void quit ( int  code)

Definition at line 61 of file ev.c.

{
       exit(code);
}
void wputs ( char *  msg)

Definition at line 53 of file ev.c.

{
       eputs(msg);
}

Here is the call graph for this function:


Variable Documentation

const char RCSid[] = "$Id: ev.c,v 1.7 2008/09/11 05:34:47 greg Exp $" [static]

Definition at line 2 of file ev.c.