os/persistentdata/persistentstorage/sqlite3api/TEST/TCL/tcldistribution/compat/stdlib.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
/*
sl@0
     2
 * stdlib.h --
sl@0
     3
 *
sl@0
     4
 *	Declares facilities exported by the "stdlib" portion of
sl@0
     5
 *	the C library.  This file isn't complete in the ANSI-C
sl@0
     6
 *	sense;  it only declares things that are needed by Tcl.
sl@0
     7
 *	This file is needed even on many systems with their own
sl@0
     8
 *	stdlib.h (e.g. SunOS) because not all stdlib.h files
sl@0
     9
 *	declare all the procedures needed here (such as strtod).
sl@0
    10
 *
sl@0
    11
 * Copyright (c) 1991 The Regents of the University of California.
sl@0
    12
 * Copyright (c) 1994-1998 Sun Microsystems, Inc.
sl@0
    13
 *
sl@0
    14
 * See the file "license.terms" for information on usage and redistribution
sl@0
    15
 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
sl@0
    16
 *
sl@0
    17
 * RCS: @(#) $Id: stdlib.h,v 1.3 1999/04/16 00:46:30 stanton Exp $
sl@0
    18
 */
sl@0
    19
sl@0
    20
#ifndef _STDLIB
sl@0
    21
#define _STDLIB
sl@0
    22
sl@0
    23
#include "tcl.h"
sl@0
    24
sl@0
    25
extern void		abort _ANSI_ARGS_((void));
sl@0
    26
extern double		atof _ANSI_ARGS_((CONST char *string));
sl@0
    27
extern int		atoi _ANSI_ARGS_((CONST char *string));
sl@0
    28
extern long		atol _ANSI_ARGS_((CONST char *string));
sl@0
    29
extern char *		calloc _ANSI_ARGS_((unsigned int numElements,
sl@0
    30
			    unsigned int size));
sl@0
    31
extern void		exit _ANSI_ARGS_((int status));
sl@0
    32
extern int		free _ANSI_ARGS_((char *blockPtr));
sl@0
    33
extern char *		getenv _ANSI_ARGS_((CONST char *name));
sl@0
    34
extern char *		malloc _ANSI_ARGS_((unsigned int numBytes));
sl@0
    35
extern void		qsort _ANSI_ARGS_((VOID *base, int n, int size,
sl@0
    36
			    int (*compar)(CONST VOID *element1, CONST VOID
sl@0
    37
			    *element2)));
sl@0
    38
extern char *		realloc _ANSI_ARGS_((char *ptr, unsigned int numBytes));
sl@0
    39
extern double		strtod _ANSI_ARGS_((CONST char *string, char **endPtr));
sl@0
    40
extern long		strtol _ANSI_ARGS_((CONST char *string, char **endPtr,
sl@0
    41
			    int base));
sl@0
    42
extern unsigned long	strtoul _ANSI_ARGS_((CONST char *string,
sl@0
    43
			    char **endPtr, int base));
sl@0
    44
sl@0
    45
#endif /* _STDLIB */