home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Interactive Reference Guide / C-C++ Interactive Reference Guide.iso / c_ref / csource3 / 161_01 / stdlib.c < prev    next >
Encoding:
C/C++ Source or Header  |  1985-08-30  |  407 b   |  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.