home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / crt / src / stdlib.h < prev    next >
C/C++ Source or Header  |  1998-06-17  |  17KB  |  509 lines

  1. /***
  2. *stdlib.h - declarations/definitions for commonly used library functions
  3. *
  4. *       Copyright (c) 1985-1997, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. *       This include file contains the function declarations for commonly
  8. *       used library functions which either don't fit somewhere else, or,
  9. *       cannot be declared in the normal place for other reasons.
  10. *       [ANSI]
  11. *
  12. *       [Public]
  13. *
  14. ****/
  15.  
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif  /* _MSC_VER > 1000 */
  19.  
  20. #ifndef _INC_STDLIB
  21. #define _INC_STDLIB
  22.  
  23. #if !defined (_WIN32) && !defined (_MAC)
  24. #error ERROR: Only Mac or Win32 targets supported!
  25. #endif  /* !defined (_WIN32) && !defined (_MAC) */
  26.  
  27. #ifndef _CRTBLD
  28. /* This version of the header files is NOT for user programs.
  29.  * It is intended for use when building the C runtimes ONLY.
  30.  * The version intended for public use will not have this message.
  31.  */
  32. #error ERROR: Use of C runtime library internal header file.
  33. #endif  /* _CRTBLD */
  34.  
  35. #ifdef _MSC_VER
  36. /*
  37.  * Currently, all MS C compilers for Win32 platforms default to 8 byte
  38.  * alignment.
  39.  */
  40. #pragma pack(push,8)
  41. #endif  /* _MSC_VER */
  42.  
  43. #ifdef __cplusplus
  44. extern "C" {
  45. #endif  /* __cplusplus */
  46.  
  47. #ifndef _INTERNAL_IFSTRIP_
  48. #include <cruntime.h>
  49. #endif  /* _INTERNAL_IFSTRIP_ */
  50.  
  51.  
  52. /* Define _CRTIMP */
  53.  
  54. #ifndef _CRTIMP
  55. #ifdef CRTDLL
  56. #define _CRTIMP __declspec(dllexport)
  57. #else  /* CRTDLL */
  58. #ifdef _DLL
  59. #define _CRTIMP __declspec(dllimport)
  60. #else  /* _DLL */
  61. #define _CRTIMP
  62. #endif  /* _DLL */
  63. #endif  /* CRTDLL */
  64. #endif  /* _CRTIMP */
  65.  
  66.  
  67. /* Define __cdecl for non-Microsoft compilers */
  68.  
  69. #if (!defined (_MSC_VER) && !defined (__cdecl))
  70. #define __cdecl
  71. #endif  /* (!defined (_MSC_VER) && !defined (__cdecl)) */
  72.  
  73. /* Define _CRTAPI1 (for compatibility with the NT SDK) */
  74.  
  75. #ifndef _CRTAPI1
  76. #if _MSC_VER >= 800 && _M_IX86 >= 300
  77. #define _CRTAPI1 __cdecl
  78. #else  /* _MSC_VER >= 800 && _M_IX86 >= 300 */
  79. #define _CRTAPI1
  80. #endif  /* _MSC_VER >= 800 && _M_IX86 >= 300 */
  81. #endif  /* _CRTAPI1 */
  82.  
  83.  
  84. #ifndef _SIZE_T_DEFINED
  85. typedef unsigned int size_t;
  86. #define _SIZE_T_DEFINED
  87. #endif  /* _SIZE_T_DEFINED */
  88.  
  89.  
  90. #ifndef _WCHAR_T_DEFINED
  91. typedef unsigned short wchar_t;
  92. #define _WCHAR_T_DEFINED
  93. #endif  /* _WCHAR_T_DEFINED */
  94.  
  95.  
  96. /* Define NULL pointer value */
  97.  
  98. #ifndef NULL
  99. #ifdef __cplusplus
  100. #define NULL    0
  101. #else  /* __cplusplus */
  102. #define NULL    ((void *)0)
  103. #endif  /* __cplusplus */
  104. #endif  /* NULL */
  105.  
  106.  
  107. /* Definition of the argument values for the exit() function */
  108.  
  109. #define EXIT_SUCCESS    0
  110. #define EXIT_FAILURE    1
  111.  
  112.  
  113. #ifndef _ONEXIT_T_DEFINED
  114. typedef int (__cdecl * _onexit_t)(void);
  115. #if !__STDC__
  116. /* Non-ANSI name for compatibility */
  117. #define onexit_t _onexit_t
  118. #endif  /* !__STDC__ */
  119. #define _ONEXIT_T_DEFINED
  120. #endif  /* _ONEXIT_T_DEFINED */
  121.  
  122.  
  123. /* Data structure definitions for div and ldiv runtimes. */
  124.  
  125. #ifndef _DIV_T_DEFINED
  126.  
  127. typedef struct _div_t {
  128.         int quot;
  129.         int rem;
  130. } div_t;
  131.  
  132. typedef struct _ldiv_t {
  133.         long quot;
  134.         long rem;
  135. } ldiv_t;
  136.  
  137. #define _DIV_T_DEFINED
  138. #endif  /* _DIV_T_DEFINED */
  139.  
  140.  
  141. /* Maximum value that can be returned by the rand function. */
  142.  
  143. #define RAND_MAX 0x7fff
  144.  
  145. /*
  146.  * Maximum number of bytes in multi-byte character in the current locale
  147.  * (also defined in ctype.h).
  148.  */
  149. #ifndef MB_CUR_MAX
  150. #ifndef _INTERNAL_IFSTRIP_
  151. #if defined (_DLL) && defined (_M_IX86)
  152. /* Retained for compatibility with VC++ 5.0 and earlier versions */
  153. _CRTIMP int * __cdecl __p___mb_cur_max(void);
  154. #endif  /* defined (_DLL) && defined (_M_IX86) */
  155. #endif  /* _INTERNAL_IFSTRIP_ */
  156. #define MB_CUR_MAX __mb_cur_max
  157. _CRTIMP extern int __mb_cur_max;
  158. #endif  /* MB_CUR_MAX */
  159.  
  160.  
  161. /* Minimum and maximum macros */
  162.  
  163. #define __max(a,b)  (((a) > (b)) ? (a) : (b))
  164. #define __min(a,b)  (((a) < (b)) ? (a) : (b))
  165.  
  166. /*
  167.  * Sizes for buffers used by the _makepath() and _splitpath() functions.
  168.  * note that the sizes include space for 0-terminator
  169.  */
  170. #ifndef _MAC
  171. #define _MAX_PATH   260 /* max. length of full pathname */
  172. #define _MAX_DRIVE  3   /* max. length of drive component */
  173. #define _MAX_DIR    256 /* max. length of path component */
  174. #define _MAX_FNAME  256 /* max. length of file name component */
  175. #define _MAX_EXT    256 /* max. length of extension component */
  176. #else  /* _MAC */
  177. #define _MAX_PATH   256 /* max. length of full pathname */
  178. #define _MAX_DIR    32  /* max. length of path component */
  179. #define _MAX_FNAME  64  /* max. length of file name component */
  180. #endif  /* _MAC */
  181.  
  182. /*
  183.  * Argument values for _set_error_mode().
  184.  */
  185. #define _OUT_TO_DEFAULT 0
  186. #define _OUT_TO_STDERR  1
  187. #define _OUT_TO_MSGBOX  2
  188. #define _REPORT_ERRMODE 3
  189.  
  190.  
  191. /* External variable declarations */
  192.  
  193. #if (defined (_MT) || defined (_DLL)) && !defined (_MAC)
  194. _CRTIMP int * __cdecl _errno(void);
  195. _CRTIMP unsigned long * __cdecl __doserrno(void);
  196. #define errno       (*_errno())
  197. #define _doserrno   (*__doserrno())
  198. #else  /* (defined (_MT) || defined (_DLL)) && !defined (_MAC) */
  199. _CRTIMP extern int errno;               /* XENIX style error number */
  200. _CRTIMP extern unsigned long _doserrno; /* OS system error value */
  201. #endif  /* (defined (_MT) || defined (_DLL)) && !defined (_MAC) */
  202.  
  203.  
  204. #ifdef _MAC
  205. _CRTIMP extern int  _macerrno;          /* OS system error value */
  206. #endif  /* _MAC */
  207.  
  208.  
  209. _CRTIMP extern char * _sys_errlist[];   /* perror error message table */
  210. _CRTIMP extern int _sys_nerr;           /* # of entries in sys_errlist table */
  211.  
  212.  
  213. #if defined (_DLL) && defined (_M_IX86)
  214.  
  215. #define __argc      (*__p___argc())     /* count of cmd line args */
  216. #define __argv      (*__p___argv())     /* pointer to table of cmd line args */
  217. #define __wargv     (*__p___wargv())    /* pointer to table of wide cmd line args */
  218. #define _environ    (*__p__environ())   /* pointer to environment table */
  219. #ifndef _MAC
  220. #define _wenviron   (*__p__wenviron())  /* pointer to wide environment table */
  221. #endif  /* _MAC */
  222. #define _pgmptr     (*__p__pgmptr())    /* points to the module (EXE) name */
  223. #ifndef _MAC
  224. #define _wpgmptr    (*__p__wpgmptr())   /* points to the module (EXE) wide name */
  225. #endif  /* _MAC */
  226.  
  227. _CRTIMP int *          __cdecl __p___argc(void);
  228. _CRTIMP char ***       __cdecl __p___argv(void);
  229. _CRTIMP wchar_t ***    __cdecl __p___wargv(void);
  230. _CRTIMP char ***       __cdecl __p__environ(void);
  231. _CRTIMP wchar_t ***    __cdecl __p__wenviron(void);
  232. _CRTIMP char **        __cdecl __p__pgmptr(void);
  233. _CRTIMP wchar_t **     __cdecl __p__wpgmptr(void);
  234.  
  235. #ifndef _INTERNAL_IFSTRIP_
  236. /* Retained for compatibility with VC++ 5.0 and earlier versions */
  237. _CRTIMP int *          __cdecl __p__fmode(void);
  238. _CRTIMP int *          __cdecl __p__fileinfo(void);
  239. _CRTIMP unsigned int * __cdecl __p__osver(void);
  240. _CRTIMP unsigned int * __cdecl __p__winver(void);
  241. _CRTIMP unsigned int * __cdecl __p__winmajor(void);
  242. _CRTIMP unsigned int * __cdecl __p__winminor(void);
  243. #endif  /* _INTERNAL_IFSTRIP_ */
  244.  
  245. #else  /* defined (_DLL) && defined (_M_IX86) */
  246.  
  247. _CRTIMP extern int __argc;          /* count of cmd line args */
  248. _CRTIMP extern char ** __argv;      /* pointer to table of cmd line args */
  249. #ifndef _MAC
  250. _CRTIMP extern wchar_t ** __wargv;  /* pointer to table of wide cmd line args */
  251. #endif  /* _MAC */
  252.  
  253. _CRTIMP extern char ** _environ;    /* pointer to environment table */
  254. #ifndef _MAC
  255. _CRTIMP extern wchar_t ** _wenviron;    /* pointer to wide environment table */
  256. #endif  /* _MAC */
  257.  
  258. _CRTIMP extern char * _pgmptr;      /* points to the module (EXE) name */
  259. #ifndef _MAC
  260. _CRTIMP extern wchar_t * _wpgmptr;  /* points to the module (EXE) wide name */
  261. #endif  /* _MAC */
  262.  
  263. #endif  /* defined (_DLL) && defined (_M_IX86) */
  264.  
  265.  
  266. #ifdef SPECIAL_CRTEXE
  267.         extern int _fmode;          /* default file translation mode */
  268. #else  /* SPECIAL_CRTEXE */
  269. _CRTIMP extern int _fmode;          /* default file translation mode */
  270. #endif  /* SPECIAL_CRTEXE */
  271. _CRTIMP extern int _fileinfo;       /* open file info mode (for spawn) */
  272.  
  273.  
  274. /* Windows major/minor and O.S. version numbers */
  275.  
  276. _CRTIMP extern unsigned int _osver;
  277. _CRTIMP extern unsigned int _winver;
  278. _CRTIMP extern unsigned int _winmajor;
  279. _CRTIMP extern unsigned int _winminor;
  280.  
  281.  
  282. /* function prototypes */
  283.  
  284. #if _MSC_VER >= 1200
  285. _CRTIMP __declspec(noreturn) void   __cdecl abort(void);
  286. _CRTIMP __declspec(noreturn) void   __cdecl exit(int);
  287. #else  /* _MSC_VER >= 1200 */
  288. _CRTIMP void   __cdecl abort(void);
  289. _CRTIMP void   __cdecl exit(int);
  290. #endif  /* _MSC_VER >= 1200 */
  291.  
  292. #if defined (_M_MRX000)
  293. _CRTIMP int    __cdecl abs(int);
  294. #else  /* defined (_M_MRX000) */
  295.         int    __cdecl abs(int);
  296. #endif  /* defined (_M_MRX000) */
  297.         int    __cdecl atexit(void (__cdecl *)(void));
  298. _CRTIMP double __cdecl atof(const char *);
  299. _CRTIMP int    __cdecl atoi(const char *);
  300. _CRTIMP long   __cdecl atol(const char *);
  301. #ifdef _M_M68K
  302. _CRTIMP long double __cdecl _atold(const char *);
  303. #endif  /* _M_M68K */
  304. _CRTIMP void * __cdecl bsearch(const void *, const void *, size_t, size_t,
  305.         int (__cdecl *)(const void *, const void *));
  306. _CRTIMP void * __cdecl calloc(size_t, size_t);
  307. _CRTIMP div_t  __cdecl div(int, int);
  308. _CRTIMP void   __cdecl free(void *);
  309. _CRTIMP char * __cdecl getenv(const char *);
  310. _CRTIMP char * __cdecl _itoa(int, char *, int);
  311. #if _INTEGRAL_MAX_BITS >= 64   
  312. _CRTIMP char * __cdecl _i64toa(__int64, char *, int);
  313. _CRTIMP char * __cdecl _ui64toa(unsigned __int64, char *, int);
  314. _CRTIMP __int64 __cdecl _atoi64(const char *);
  315. #endif  /* _INTEGRAL_MAX_BITS >= 64    */
  316. #if defined (_M_MRX000)
  317. _CRTIMP long __cdecl labs(long);
  318. #else  /* defined (_M_MRX000) */
  319.         long __cdecl labs(long);
  320. #endif  /* defined (_M_MRX000) */
  321. _CRTIMP ldiv_t __cdecl ldiv(long, long);
  322. _CRTIMP char * __cdecl _ltoa(long, char *, int);
  323. _CRTIMP void * __cdecl malloc(size_t);
  324. _CRTIMP int    __cdecl mblen(const char *, size_t);
  325. _CRTIMP size_t __cdecl _mbstrlen(const char *s);
  326. _CRTIMP int    __cdecl mbtowc(wchar_t *, const char *, size_t);
  327. _CRTIMP size_t __cdecl mbstowcs(wchar_t *, const char *, size_t);
  328. _CRTIMP void   __cdecl qsort(void *, size_t, size_t, int (__cdecl *)
  329.         (const void *, const void *));
  330. _CRTIMP int    __cdecl rand(void);
  331. _CRTIMP void * __cdecl realloc(void *, size_t);
  332. _CRTIMP int    __cdecl _set_error_mode(int);
  333. _CRTIMP void   __cdecl srand(unsigned int);
  334. _CRTIMP double __cdecl strtod(const char *, char **);
  335. _CRTIMP long   __cdecl strtol(const char *, char **, int);
  336. #ifdef _M_M68K
  337. _CRTIMP long double __cdecl _strtold(const char *, char **);
  338. #endif  /* _M_M68K */
  339. _CRTIMP unsigned long __cdecl strtoul(const char *, char **, int);
  340. #ifndef _MAC
  341. _CRTIMP int    __cdecl system(const char *);
  342. #endif  /* _MAC */
  343. _CRTIMP char * __cdecl _ultoa(unsigned long, char *, int);
  344. _CRTIMP int    __cdecl wctomb(char *, wchar_t);
  345. _CRTIMP size_t __cdecl wcstombs(char *, const wchar_t *, size_t);
  346.  
  347.  
  348. #ifndef _MAC
  349. #ifndef _WSTDLIB_DEFINED
  350.  
  351. /* wide function prototypes, also declared in wchar.h  */
  352.  
  353. _CRTIMP wchar_t * __cdecl _itow (int, wchar_t *, int);
  354. _CRTIMP wchar_t * __cdecl _ltow (long, wchar_t *, int);
  355. _CRTIMP wchar_t * __cdecl _ultow (unsigned long, wchar_t *, int);
  356. _CRTIMP double __cdecl wcstod(const wchar_t *, wchar_t **);
  357. _CRTIMP long   __cdecl wcstol(const wchar_t *, wchar_t **, int);
  358. _CRTIMP unsigned long __cdecl wcstoul(const wchar_t *, wchar_t **, int);
  359. _CRTIMP wchar_t * __cdecl _wgetenv(const wchar_t *);
  360. _CRTIMP int    __cdecl _wsystem(const wchar_t *);
  361. _CRTIMP int __cdecl _wtoi(const wchar_t *);
  362. _CRTIMP long __cdecl _wtol(const wchar_t *);
  363. #if _INTEGRAL_MAX_BITS >= 64   
  364. _CRTIMP wchar_t * __cdecl _i64tow(__int64, wchar_t *, int);
  365. _CRTIMP wchar_t * __cdecl _ui64tow(unsigned __int64, wchar_t *, int);
  366. _CRTIMP __int64   __cdecl _wtoi64(const wchar_t *);
  367. #endif  /* _INTEGRAL_MAX_BITS >= 64    */
  368.  
  369. #define _WSTDLIB_DEFINED
  370. #endif  /* _WSTDLIB_DEFINED */
  371. #endif  /* _MAC */
  372.  
  373.  
  374.  
  375. _CRTIMP char * __cdecl _ecvt(double, int, int *, int *);
  376. #if _MSC_VER >= 1200
  377. _CRTIMP __declspec(noreturn) void   __cdecl _exit(int);
  378. #else  /* _MSC_VER >= 1200 */
  379. _CRTIMP void   __cdecl _exit(int);
  380. #endif  /* _MSC_VER >= 1200 */
  381. _CRTIMP char * __cdecl _fcvt(double, int, int *, int *);
  382. _CRTIMP char * __cdecl _fullpath(char *, const char *, size_t);
  383. _CRTIMP char * __cdecl _gcvt(double, int, char *);
  384.         unsigned long __cdecl _lrotl(unsigned long, int);
  385.         unsigned long __cdecl _lrotr(unsigned long, int);
  386. #ifndef _MAC
  387. _CRTIMP void   __cdecl _makepath(char *, const char *, const char *, const char *,
  388.         const char *);
  389. #endif  /* _MAC */
  390.         _onexit_t __cdecl _onexit(_onexit_t);
  391. _CRTIMP void   __cdecl perror(const char *);
  392. _CRTIMP int    __cdecl _putenv(const char *);
  393.         unsigned int __cdecl _rotl(unsigned int, int);
  394.         unsigned int __cdecl _rotr(unsigned int, int);
  395. _CRTIMP void   __cdecl _searchenv(const char *, const char *, char *);
  396. #ifndef _MAC
  397. _CRTIMP void   __cdecl _splitpath(const char *, char *, char *, char *, char *);
  398. #endif  /* _MAC */
  399. _CRTIMP void   __cdecl _swab(char *, char *, int);
  400.  
  401. #ifndef _MAC
  402. #ifndef _WSTDLIBP_DEFINED
  403.  
  404. /* wide function prototypes, also declared in wchar.h  */
  405.  
  406. _CRTIMP wchar_t * __cdecl _wfullpath(wchar_t *, const wchar_t *, size_t);
  407. _CRTIMP void   __cdecl _wmakepath(wchar_t *, const wchar_t *, const wchar_t *, const wchar_t *,
  408.         const wchar_t *);
  409. _CRTIMP void   __cdecl _wperror(const wchar_t *);
  410. _CRTIMP int    __cdecl _wputenv(const wchar_t *);
  411. _CRTIMP void   __cdecl _wsearchenv(const wchar_t *, const wchar_t *, wchar_t *);
  412. _CRTIMP void   __cdecl _wsplitpath(const wchar_t *, wchar_t *, wchar_t *, wchar_t *, wchar_t *);
  413.  
  414. #define _WSTDLIBP_DEFINED
  415. #endif  /* _WSTDLIBP_DEFINED */
  416. #endif  /* _MAC */
  417.  
  418. /* --------- The following functions are OBSOLETE --------- */
  419. /* The Win32 API SetErrorMode, Beep and Sleep should be used instead. */
  420. #ifndef _MAC
  421. _CRTIMP void __cdecl _seterrormode(int);
  422. _CRTIMP void __cdecl _beep(unsigned, unsigned);
  423. _CRTIMP void __cdecl _sleep(unsigned long);
  424. #endif  /* _MAC */
  425. /* --------- The preceding functions are OBSOLETE --------- */
  426.  
  427.  
  428.  
  429. #if !__STDC__
  430. /* --------- The declarations below should not be in stdlib.h --------- */
  431. /* --------- and will be removed in a future release. Include --------- */
  432. /* --------- ctype.h to obtain these declarations.            --------- */
  433. #ifndef tolower
  434. _CRTIMP int __cdecl tolower(int);
  435. #endif  /* tolower */
  436. #ifndef toupper
  437. _CRTIMP int __cdecl toupper(int);
  438. #endif  /* toupper */
  439. /* --------- The declarations above will be removed.          --------- */
  440. #endif  /* !__STDC__ */
  441.  
  442. #ifdef _MT
  443. char * __cdecl _getenv_lk(const char *);                    /* _MTHREAD_ONLY */
  444. #ifndef _MAC
  445. wchar_t * __cdecl _wgetenv_lk(const wchar_t *);             /* _MTHREAD_ONLY */
  446. #endif  /* _MAC */
  447. int    __cdecl _putenv_lk(const char *);                    /* _MTHREAD_ONLY */
  448. #ifndef _MAC
  449. int    __cdecl _wputenv_lk(const wchar_t *);                /* _MTHREAD_ONLY */
  450. #endif  /* _MAC */
  451. int    __cdecl _mblen_lk(const char *, size_t);             /* _MTHREAD_ONLY */
  452. int    __cdecl _mbtowc_lk(wchar_t*,const char*,size_t);     /* _MTHREAD_ONLY */
  453. size_t __cdecl _mbstowcs_lk(wchar_t*,const char*,size_t);   /* _MTHREAD_ONLY */
  454. int    __cdecl _wctomb_lk(char*,wchar_t);                   /* _MTHREAD_ONLY */
  455. size_t __cdecl _wcstombs_lk(char*,const wchar_t*,size_t);   /* _MTHREAD_ONLY */
  456. #else  /* _MT */
  457. #define _getenv_lk(envvar)  getenv(envvar)                  /* _MTHREAD_ONLY */
  458. #ifndef _MAC
  459. #define _wgetenv_lk(envvar)  _wgetenv(envvar)               /* _MTHREAD_ONLY */
  460. #endif  /* _MAC */
  461. #define _putenv_lk(envvar)  _putenv(envvar)                 /* _MTHREAD_ONLY */
  462. #ifndef _MAC
  463. #define _wputenv_lk(envvar)  _wputenv(envvar)               /* _MTHREAD_ONLY */
  464. #endif  /* _MAC */
  465. #define _mblen_lk(s,n) mblen(s,n)                           /* _MTHREAD_ONLY */
  466. #define _mbtowc_lk(pwc,s,n) mbtowc(pwc,s,n)                 /* _MTHREAD_ONLY */
  467. #define _mbstowcs_lk(pwcs,s,n) mbstowcs(pwcs,s,n)           /* _MTHREAD_ONLY */
  468. #define _wctomb_lk(s,wchar) wctomb(s,wchar)                 /* _MTHREAD_ONLY */
  469. #define _wcstombs_lk(s,pwcs,n) wcstombs(s,pwcs,n)           /* _MTHREAD_ONLY */
  470. #endif  /* _MT */
  471.  
  472. #if !__STDC__
  473.  
  474.  
  475. /* Non-ANSI names for compatibility */
  476.  
  477. #ifndef __cplusplus
  478. #define max(a,b)    (((a) > (b)) ? (a) : (b))
  479. #define min(a,b)    (((a) < (b)) ? (a) : (b))
  480. #endif  /* __cplusplus */
  481.  
  482. #define sys_errlist _sys_errlist
  483. #define sys_nerr    _sys_nerr
  484. #define environ     _environ
  485.  
  486. _CRTIMP char * __cdecl ecvt(double, int, int *, int *);
  487. _CRTIMP char * __cdecl fcvt(double, int, int *, int *);
  488. _CRTIMP char * __cdecl gcvt(double, int, char *);
  489. _CRTIMP char * __cdecl itoa(int, char *, int);
  490. _CRTIMP char * __cdecl ltoa(long, char *, int);
  491.         onexit_t __cdecl onexit(onexit_t);
  492. _CRTIMP int    __cdecl putenv(const char *);
  493. _CRTIMP void   __cdecl swab(char *, char *, int);
  494. _CRTIMP char * __cdecl ultoa(unsigned long, char *, int);
  495.  
  496.  
  497. #endif  /* !__STDC__ */
  498.  
  499. #ifdef __cplusplus
  500. }
  501.  
  502. #endif  /* __cplusplus */
  503.  
  504. #ifdef _MSC_VER
  505. #pragma pack(pop)
  506. #endif  /* _MSC_VER */
  507.  
  508. #endif  /* _INC_STDLIB */
  509.