Back to index

tetex-bin  3.0
Functions
sexpr.c File Reference
#include <stdio.h>
#include "strexpr.h"
#include "basics.h"

Go to the source code of this file.

Functions

int main (int argc, char *argv[])

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 13 of file sexpr.c.

                                 {
   int result;

   if (argc < 2) fatal("Usage: sexpr expression ...\n");

   while (--argc > 0) {
      if (strexpr(&result, *++argv))
         fatal("expression error\n");

      printf("%s = %d\n", argv[0] , result);
   }
   exit(0);
}

Here is the call graph for this function: