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