Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
att
GitHub Repository: att/ast
Path: blob/master/src/lib/libtk/compat/stdlib.h
1810 views
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
* Copyright (c) 1994 Sun Microsystems, Inc.
13
*
14
* See the file "license.terms" for information on usage and redistribution
15
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
16
*
17
* SCCS: @(#) stdlib.h 1.10 96/02/15 14:43:54
18
*/
19
20
#ifndef _STDLIB
21
#define _STDLIB
22
23
#include <tcl.h>
24
25
extern void abort _ANSI_ARGS_((void));
26
extern double atof _ANSI_ARGS_((CONST char *string));
27
extern int atoi _ANSI_ARGS_((CONST char *string));
28
extern long atol _ANSI_ARGS_((CONST char *string));
29
extern char * calloc _ANSI_ARGS_((unsigned int numElements,
30
unsigned int size));
31
extern void exit _ANSI_ARGS_((int status));
32
extern int free _ANSI_ARGS_((char *blockPtr));
33
extern char * getenv _ANSI_ARGS_((CONST char *name));
34
extern char * malloc _ANSI_ARGS_((unsigned int numBytes));
35
extern void qsort _ANSI_ARGS_((VOID *base, int n, int size,
36
int (*compar)(CONST VOID *element1, CONST VOID
37
*element2)));
38
extern char * realloc _ANSI_ARGS_((char *ptr, unsigned int numBytes));
39
extern double strtod _ANSI_ARGS_((CONST char *string, char **endPtr));
40
extern long strtol _ANSI_ARGS_((CONST char *string, char **endPtr,
41
int base));
42
extern unsigned long strtoul _ANSI_ARGS_((CONST char *string,
43
char **endPtr, int base));
44
45
#endif /* _STDLIB */
46
47