home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 200-299 / ff294.lzh / DNet / amiga / lib / getenvval.c < prev    next >
C/C++ Source or Header  |  1989-12-11  |  189b  |  21 lines

  1.  
  2. /*
  3.  *  GetEnvVal.C
  4.  */
  5.  
  6. #include "lib.h"
  7.  
  8. int
  9. GetEnvVal(str)
  10. char *str;
  11. {
  12.     char *ptr = GetDEnv(str);
  13.     int val = 0;
  14.  
  15.     if (ptr)
  16.     val = atoi(ptr);
  17.     free(ptr);
  18.     return(val);
  19. }
  20.  
  21.