home *** CD-ROM | disk | FTP | other *** search
/ Vectronix 2 / VECTRONIX2.iso / FILES_01 / PC_V11_A.LZH / INCLUDE / STDLIB.H < prev    next >
Text File  |  1991-06-14  |  2KB  |  79 lines

  1. /*      STDLIB.H
  2.  
  3.         Standard Library Includes
  4.  
  5.         Copyright (c) Borland International 1990
  6.         All Rights Reserved.
  7. */
  8.  
  9.  
  10. #if !defined( __STDLIB )
  11. #define __STDLIB
  12.  
  13.  
  14. #define EXIT_FAILURE    !0
  15. #define EXIT_SUCCESS    0
  16. #define RAND_MAX        32767
  17.  
  18.  
  19. typedef unsigned long   size_t;
  20.  
  21.  
  22. typedef struct
  23. {
  24.     int    quot;
  25.     int    rem;
  26. } div_t;
  27.  
  28. typedef struct
  29. {
  30.     long   quot;
  31.     long   rem;
  32. } ldiv_t;
  33.  
  34.  
  35. double  atof( const char *str );
  36. int     atoi( const char *str );
  37. long    atol( const char *str );
  38.  
  39. char    *ecvt( double d, int ndig, int *dec, int *sign );
  40. char    *fcvt( double d, int ndig, int *dec, int *sign );
  41. char    *gcvt( double value, int dec, char * buf );
  42.  
  43. char    *itoa( int value, char *string, int radix );
  44. char    *ltoa( long value, char *string, int radix );
  45. char    *ultoa( unsigned long value, char *string, int radix );
  46.  
  47. void    *malloc( size_t size );
  48. void    *calloc( size_t elt_count, size_t elt_size );
  49. void    free( void *ptr );
  50. void    *realloc( void *ptr, size_t size );
  51.  
  52. int     abs( int x );
  53. long    labs( long x );
  54. div_t   div( int n, int d );
  55. ldiv_t  ldiv( long n, long d );
  56.  
  57. int     rand( void );
  58. void    srand( unsigned int seed );
  59. #define random( x ) (rand() % (x))
  60. double  strtod( const char *s, char **endptr );
  61.  
  62. int     system( const char *command );
  63.  
  64. void    exit( int status );
  65. void    abort( void );
  66. int     atexit( void (*func)( void ) );
  67.  
  68. char    *getenv( const char *name );
  69.  
  70. void    *bsearch( const void *key, const void *base,
  71.           size_t nmemb, size_t size,
  72.           int (*compar)() );
  73. void    qsort( void *base, size_t nmemb, size_t size,
  74.           int (*compar)() );
  75.  
  76. #endif
  77.  
  78. /************************************************************************/
  79.