home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 1 / GoldFishApril1994_CD2.img / d4xx / d472 / icalc / src / function.c < prev    next >
C/C++ Source or Header  |  1991-04-17  |  409b  |  22 lines

  1. /*
  2. *    the whole point of the program, really: user-functions.
  3. *    These are the routines to implement them.
  4. *    Structure definition is in complex.h.
  5. *
  6. *    MWS, March 21, 1991.
  7. */
  8. #include "complex.h"
  9. #include "memory.h"
  10.  
  11. void clear_ufunc(func)
  12.     UserFunc *func;
  13. {
  14.     RemKey **oldkey = rem_setkey(&func->remkey);
  15.  
  16.     rem_freeall();
  17.     free(func->param->name);
  18.     free(func->param);
  19.     func->tree = NULL;
  20.     rem_setkey(oldkey);
  21. }
  22.