1*6b445a62SJohn Marino /* ansi_stdlib.h -- An ANSI Standard stdlib.h. */ 2*6b445a62SJohn Marino /* A minimal stdlib.h containing extern declarations for those functions 3*6b445a62SJohn Marino that bash uses. */ 4*6b445a62SJohn Marino 5*6b445a62SJohn Marino /* Copyright (C) 1993 Free Software Foundation, Inc. 6*6b445a62SJohn Marino 7*6b445a62SJohn Marino This file is part of GNU Bash, the Bourne Again SHell. 8*6b445a62SJohn Marino 9*6b445a62SJohn Marino Bash is free software: you can redistribute it and/or modify 10*6b445a62SJohn Marino it under the terms of the GNU General Public License as published by 11*6b445a62SJohn Marino the Free Software Foundation, either version 3 of the License, or 12*6b445a62SJohn Marino (at your option) any later version. 13*6b445a62SJohn Marino 14*6b445a62SJohn Marino Bash is distributed in the hope that it will be useful, 15*6b445a62SJohn Marino but WITHOUT ANY WARRANTY; without even the implied warranty of 16*6b445a62SJohn Marino MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17*6b445a62SJohn Marino GNU General Public License for more details. 18*6b445a62SJohn Marino 19*6b445a62SJohn Marino You should have received a copy of the GNU General Public License 20*6b445a62SJohn Marino along with Bash. If not, see <http://www.gnu.org/licenses/>. 21*6b445a62SJohn Marino */ 22*6b445a62SJohn Marino 23*6b445a62SJohn Marino #if !defined (_STDLIB_H_) 24*6b445a62SJohn Marino #define _STDLIB_H_ 1 25*6b445a62SJohn Marino 26*6b445a62SJohn Marino /* String conversion functions. */ 27*6b445a62SJohn Marino extern int atoi (); 28*6b445a62SJohn Marino 29*6b445a62SJohn Marino extern double atof (); 30*6b445a62SJohn Marino extern double strtod (); 31*6b445a62SJohn Marino 32*6b445a62SJohn Marino /* Memory allocation functions. */ 33*6b445a62SJohn Marino /* Generic pointer type. */ 34*6b445a62SJohn Marino #ifndef PTR_T 35*6b445a62SJohn Marino 36*6b445a62SJohn Marino #if defined (__STDC__) 37*6b445a62SJohn Marino # define PTR_T void * 38*6b445a62SJohn Marino #else 39*6b445a62SJohn Marino # define PTR_T char * 40*6b445a62SJohn Marino #endif 41*6b445a62SJohn Marino 42*6b445a62SJohn Marino #endif /* PTR_T */ 43*6b445a62SJohn Marino 44*6b445a62SJohn Marino extern PTR_T malloc (); 45*6b445a62SJohn Marino extern PTR_T realloc (); 46*6b445a62SJohn Marino extern void free (); 47*6b445a62SJohn Marino 48*6b445a62SJohn Marino /* Other miscellaneous functions. */ 49*6b445a62SJohn Marino extern void abort (); 50*6b445a62SJohn Marino extern void exit (); 51*6b445a62SJohn Marino extern char *getenv (); 52*6b445a62SJohn Marino extern void qsort (); 53*6b445a62SJohn Marino 54*6b445a62SJohn Marino #endif /* _STDLIB_H */ 55