home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tcl2-73c.zip / tcl7.3 / compat / stdlib.h < prev    next >
C/C++ Source or Header  |  1993-03-19  |  3KB  |  60 lines

  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.  * All rights reserved.
  13.  *
  14.  * Permission is hereby granted, without written agreement and without
  15.  * license or royalty fees, to use, copy, modify, and distribute this
  16.  * software and its documentation for any purpose, provided that the
  17.  * above copyright notice and the following two paragraphs appear in
  18.  * all copies of this software.
  19.  * 
  20.  * IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR
  21.  * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
  22.  * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF
  23.  * CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  24.  *
  25.  * THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
  26.  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
  27.  * AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
  28.  * ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO
  29.  * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
  30.  *
  31.  * $Header: /user6/ouster/tcl/compat/RCS/stdlib.h,v 1.8 93/03/19 15:25:31 ouster Exp $ SPRITE (Berkeley)
  32.  */
  33.  
  34. #ifndef _STDLIB
  35. #define _STDLIB
  36.  
  37. #include <tcl.h>
  38.  
  39. extern void        abort _ANSI_ARGS_((void));
  40. extern double        atof _ANSI_ARGS_((CONST char *string));
  41. extern int        atoi _ANSI_ARGS_((CONST char *string));
  42. extern long        atol _ANSI_ARGS_((CONST char *string));
  43. extern char *        calloc _ANSI_ARGS_((unsigned int numElements,
  44.                 unsigned int size));
  45. extern void        exit _ANSI_ARGS_((int status));
  46. extern int        free _ANSI_ARGS_((char *blockPtr));
  47. extern char *        getenv _ANSI_ARGS_((CONST char *name));
  48. extern char *        malloc _ANSI_ARGS_((unsigned int numBytes));
  49. extern void        qsort _ANSI_ARGS_((VOID *base, int n, int size,
  50.                 int (*compar)(CONST VOID *element1, CONST VOID
  51.                 *element2)));
  52. extern char *        realloc _ANSI_ARGS_((char *ptr, unsigned int numBytes));
  53. extern double        strtod _ANSI_ARGS_((CONST char *string, char **endPtr));
  54. extern long        strtol _ANSI_ARGS_((CONST char *string, char **endPtr,
  55.                 int base));
  56. extern unsigned long    strtoul _ANSI_ARGS_((CONST char *string,
  57.                 char **endPtr, int base));
  58.  
  59. #endif /* _STDLIB */
  60.