121308Sache/* ansi_stdlib.h -- An ANSI Standard stdlib.h. */
221308Sache/* A minimal stdlib.h containing extern declarations for those functions
321308Sache   that bash uses. */
421308Sache
521308Sache/* Copyright (C) 1993 Free Software Foundation, Inc.
621308Sache
721308Sache   This file is part of GNU Bash, the Bourne Again SHell.
821308Sache
921308Sache   Bash is free software; you can redistribute it and/or modify it under
1021308Sache   the terms of the GNU General Public License as published by the Free
1121308Sache   Software Foundation; either version 2, or (at your option) any later
1221308Sache   version.
1321308Sache
1421308Sache   Bash is distributed in the hope that it will be useful, but WITHOUT ANY
1521308Sache   WARRANTY; without even the implied warranty of MERCHANTABILITY or
1621308Sache   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1721308Sache   for more details.
1821308Sache
1921308Sache   You should have received a copy of the GNU General Public License along
2021308Sache   with Bash; see the file COPYING.  If not, write to the Free Software
2158310Sache   Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. */
2221308Sache
2321308Sache#if !defined (_STDLIB_H_)
2421308Sache#define	_STDLIB_H_ 1
2521308Sache
2621308Sache/* String conversion functions. */
2721308Sacheextern int atoi ();
2821308Sache
2975406Sacheextern double atof ();
3075406Sacheextern double strtod ();
3175406Sache
3221308Sache/* Memory allocation functions. */
33119610Sache/* Generic pointer type. */
34119610Sache#ifndef PTR_T
35119610Sache
36119610Sache#if defined (__STDC__)
37119610Sache#  define PTR_T	void *
38119610Sache#else
39119610Sache#  define PTR_T char *
40119610Sache#endif
41119610Sache
42119610Sache#endif /* PTR_T */
43119610Sache
44119610Sacheextern PTR_T malloc ();
45119610Sacheextern PTR_T realloc ();
4621308Sacheextern void free ();
4721308Sache
4821308Sache/* Other miscellaneous functions. */
4921308Sacheextern void abort ();
5021308Sacheextern void exit ();
5121308Sacheextern char *getenv ();
5221308Sacheextern void qsort ();
5321308Sache
5421308Sache#endif /* _STDLIB_H  */
55