| 1 |
/* |
| 2 |
* stdlib.h -- |
| 3 |
* |
| 4 |
* Declares facilities exported by the "stdlib" portion of the C library. |
| 5 |
* This file isn't complete in the ANSI-C sense; it only declares things |
| 6 |
* that are needed by Tcl. This file is needed even on many systems with |
| 7 |
* their own stdlib.h (e.g. SunOS) because not all stdlib.h files declare |
| 8 |
* all the procedures needed here (such as strtol/strtoul). |
| 9 |
* |
| 10 |
* Copyright (c) 1991 The Regents of the University of California. |
| 11 |
* Copyright (c) 1994-1998 Sun Microsystems, Inc. |
| 12 |
* |
| 13 |
* See the file "license.terms" for information on usage and redistribution of |
| 14 |
* this file, and for a DISCLAIMER OF ALL WARRANTIES. |
| 15 |
*/ |
| 16 |
|
| 17 |
#ifndef _STDLIB |
| 18 |
#define _STDLIB |
| 19 |
|
| 20 |
extern void abort(void); |
| 21 |
extern double atof(const char *string); |
| 22 |
extern int atoi(const char *string); |
| 23 |
extern long atol(const char *string); |
| 24 |
extern void * calloc(unsigned long numElements, unsigned long size); |
| 25 |
extern void exit(int status); |
| 26 |
extern void free(void *blockPtr); |
| 27 |
extern char * getenv(const char *name); |
| 28 |
extern void * malloc(unsigned long numBytes); |
| 29 |
extern void qsort(void *base, unsigned long n, unsigned long size, int (*compar)( |
| 30 |
const void *element1, const void *element2)); |
| 31 |
extern void * realloc(void *ptr, unsigned long numBytes); |
| 32 |
extern char * realpath(const char *path, char *resolved_path); |
| 33 |
extern int mkstemps(char *templ, int suffixlen); |
| 34 |
extern int mkstemp(char *templ); |
| 35 |
extern char * mkdtemp(char *templ); |
| 36 |
extern long strtol(const char *string, char **endPtr, int base); |
| 37 |
extern unsigned long strtoul(const char *string, char **endPtr, int base); |
| 38 |
|
| 39 |
#endif /* _STDLIB */ |