home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / lib / mntlib44.zoo / mntlib / atol.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-01  |  261 b   |  16 lines

  1. /* As suggested by Harbison & Steele */
  2.  
  3. #include <stddef.h>
  4. #include <stdlib.h>
  5. #include <assert.h>
  6.  
  7. __EXTERN long strtol __PROTO((const char *, char **, int));
  8.  
  9. long
  10. atol(str)
  11. const char *str;
  12. {
  13.     assert ((str != NULL));
  14.     return strtol(str, (char **)0, 10);
  15. }
  16.