2
* Copyright (C) 1984-1995 The Santa Cruz Operation, Inc.
5
* The information in this file is provided for the exclusive use of
6
* the licensees of The Santa Cruz Operation, Inc. Such users have the
7
* right to use, modify, and incorporate this code into other products
8
* for purposes authorized by the license agreement provided they include
9
* this notice and the associated copyright notice with any such product.
10
* The information in this file is provided "AS IS" without warranty.
13
/* Portions Copyright (c) 1990, 1991, 1992, 1993 UNIX System Laboratories, Inc. */
14
/* Portions Copyright (c) 1979 - 1990 AT&T */
15
/* All Rights Reserved */
17
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF */
18
/* UNIX System Laboratories, Inc. */
19
/* The copyright notice above does not evidence any */
20
/* actual or intended publication of such source code. */
25
#pragma comment(exestr, "posix @(#) stdlib.h 20.1 94/12/04 ")
53
typedef unsigned int size_t;
56
#if !defined(_SSIZE_T)
70
#define EXIT_FAILURE 1
71
#define EXIT_SUCCESS 0
72
#define RAND_MAX 077777
76
extern unsigned char __ctype[];
78
#define MB_CUR_MAX ((int)__ctype[520])
80
extern double atof(const char *);
81
extern int atoi(const char *);
82
extern long atol(const char *);
83
extern double strtod(const char *, char **);
84
extern float strtof(const char *, char **);
85
extern long strtol(const char *, char **, int);
86
extern unsigned long strtoul(const char *, char **, int);
88
extern int rand(void);
89
extern void srand(unsigned int);
91
extern void *calloc(size_t, size_t);
92
extern void free(void *);
93
extern void *malloc(size_t);
94
extern void *realloc(void *, size_t);
96
extern void abort(void);
97
extern void exit(int);
98
extern char *getenv(const char *);
99
extern int system(const char *);
101
extern void *bsearch(const void *, const void *, size_t, size_t,
102
int (*)(const void *, const void *));
103
extern void qsort(void *, size_t, size_t,
104
int (*)(const void *, const void *));
109
inline int (abs)(int i) {return (i > 0) ? i : -i;}
112
extern int (abs)(int); /* Protect from macro definitions */
115
extern div_t div(int, int);
116
extern long labs(long);
117
extern ldiv_t ldiv(long, long);
119
extern int mbtowc(wchar_t *, const char *, size_t);
120
extern int mblen(const char *, size_t);
121
extern int wctomb(char *, wchar_t);
123
extern size_t mbstowcs(wchar_t *, const char *, size_t);
124
extern size_t wcstombs(char *, const wchar_t *, size_t);
129
#define mblen(s, n) mbtowc((wchar_t *)0, s, n)
137
#endif /* ___STDLIB_H */