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