Annotation of micropolis/src/tcl/compat/stdlib.h, revision 1.1.1.1

1.1       root        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 1991 Regents of the University of California
                     12:  * Permission to use, copy, modify, and distribute this
                     13:  * software and its documentation for any purpose and without
                     14:  * fee is hereby granted, provided that the above copyright
                     15:  * notice appears in all copies.  The University of California
                     16:  * makes no representations about the suitability of this
                     17:  * software for any purpose.  It is provided "as is" without
                     18:  * express or implied warranty.
                     19:  *
                     20:  * $Header: /user6/ouster/tcl/compat/RCS/stdlib.h,v 1.3 91/12/06 10:42:05 ouster Exp $ SPRITE (Berkeley)
                     21:  */
                     22: 
                     23: #ifndef _STDLIB
                     24: #define _STDLIB
                     25: 
                     26: #include <tclInt.h>
                     27: 
                     28: extern void            abort _ANSI_ARGS_((void));
                     29: extern double          atof _ANSI_ARGS_((char *string));
                     30: extern int             atoi _ANSI_ARGS_((char *string));
                     31: extern long            atol _ANSI_ARGS_((char *string));
                     32: extern char *          calloc _ANSI_ARGS_((unsigned int numElements,
                     33:                            unsigned int size));
                     34: extern int             exit _ANSI_ARGS_((int status));
                     35: extern int             free _ANSI_ARGS_((char *blockPtr));
                     36: extern char *          getenv _ANSI_ARGS_((char *name));
                     37: extern char *          malloc _ANSI_ARGS_((unsigned int numBytes));
                     38: extern void            qsort _ANSI_ARGS_((VOID *base, int n, int size,
                     39:                            int (*compar)(CONST VOID *element1, CONST VOID
                     40:                            *element2)));
                     41: extern char *          realloc _ANSI_ARGS_((char *ptr, unsigned int numBytes));
                     42: extern double          strtod _ANSI_ARGS_((char *string, char **endPtr));
                     43: extern long            strtol _ANSI_ARGS_((char *string, char **endPtr,
                     44:                            int base));
                     45: extern unsigned long   strtoul _ANSI_ARGS_((CONST char *string,
                     46:                            char **endPtr, int base));
                     47: 
                     48: #endif /* _STDLIB */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.