home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_100 / 161_01 / stdlib.c < prev    next >
C/C++ Source or Header  |  1985-08-29  |  407b  |  13 lines

  1. #include "timer1.h"
  2. long atol();
  3. double atof();
  4. char *p, *calloc(), *malloc();
  5.  
  6. DO_STMT("atof(\"12345\")")                atof("12345")                OD
  7. DO_STMT("atoi(\"500\")")                atoi("500")                    OD
  8. DO_STMT("atol(\"32123\")")                atol("32123")                OD
  9. DO_STMT("p = calloc(2, 2), free(p)")    p = calloc(2, 2), free(p)    OD
  10. DO_STMT("p = malloc(2), free(p)")        p = malloc(2), free(p)        OD
  11. DO_STMT("rand()")                        rand()                        OD
  12. }
  13.