home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / pdksh-4.9-src.tgz / tar.out / contrib / pdksh / std / stdc / stdlib.h < prev    next >
C/C++ Source or Header  |  1996-09-28  |  1KB  |  35 lines

  1. /* ANSI utility functions */
  2.  
  3. /* $Id: stdlib.h,v 1.3 93/05/05 21:18:29 sjg Exp $ */
  4.  
  5. #if ! _STDLIB_H
  6. #define    _STDLIB_H 1
  7.  
  8. #include <stddef.h>
  9.  
  10. double    atof ARGS((const char *s));
  11. int    atoi ARGS((const char *s));
  12. long    atol ARGS((const char *s));
  13. double    strtod ARGS((const char *s, char **));
  14. long    strtol ARGS((const char *s, char **, int base));
  15. unsigned long    strtoul ARGS((const char *s, char **, int base));
  16. int    rand ARGS((void));
  17. void    srand ARGS((unsigned int seed));
  18. void   *malloc ARGS((size_t size));
  19. void   *realloc ARGS((void *ptr, size_t size));
  20. void   *calloc ARGS((size_t n, size_t size));
  21. void    free ARGS((void *ptr));
  22. void    abort ARGS((void));
  23. int    atexit ARGS((void (*func)(void)));
  24. void    exit ARGS((int status));
  25. char   *getenv ARGS((const char *name));
  26. int    system ARGS((const char *cmd));
  27. void   *bsearch ARGS ((const void *key, const void *base, size_t n, size_t size,
  28.                int (*compar)(const void *, const void *)));
  29. void   *qsort ARGS ((const void *base, size_t n, size_t size,
  30.              int (*compar)(const void *, const void *)));
  31. #define    abs(a)    ((a) < 0 : -(a) : (a))
  32.  
  33. #endif
  34.  
  35.