00001 /* ansi_stdlib.h -- An ANSI Standard stdlib.h. */ 00002 /* A minimal stdlib.h containing extern declarations for those functions 00003 that bash uses. */ 00004 00005 /* Copyright (C) 1993 Free Software Foundation, Inc. 00006 00007 This file is part of GNU Bash, the Bourne Again SHell. 00008 00009 Bash is free software; you can redistribute it and/or modify it under 00010 the terms of the GNU General Public License as published by the Free 00011 Software Foundation; either version 2, or (at your option) any later 00012 version. 00013 00014 Bash is distributed in the hope that it will be useful, but WITHOUT ANY 00015 WARRANTY; without even the implied warranty of MERCHANTABILITY or 00016 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00017 for more details. 00018 00019 You should have received a copy of the GNU General Public License along 00020 with Bash; see the file COPYING. If not, write to the Free Software 00021 Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. */ 00022 00023 #if !defined (_STDLIB_H_) 00024 #define _STDLIB_H_ 1 00025 00026 /* String conversion functions. */ 00027 extern int atoi (); 00028 00029 extern double atof (); 00030 extern double strtod (); 00031 00032 /* Memory allocation functions. */ 00033 /* Generic pointer type. */ 00034 #ifndef PTR_T 00035 00036 #if defined (__STDC__) 00037 # define PTR_T void * 00038 #else 00039 # define PTR_T char * 00040 #endif 00041 00042 #endif /* PTR_T */ 00043 00044 extern PTR_T malloc (); 00045 extern PTR_T realloc (); 00046 extern void free (); 00047 00048 /* Other miscellaneous functions. */ 00049 extern void abort (); 00050 extern void exit (); 00051 extern char *getenv (); 00052 extern void qsort (); 00053 00054 #endif /* _STDLIB_H */