OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tcl/] [compat/] [stdlib.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
/*
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
 * RCS: @(#) $Id: stdlib.h,v 1.1.1.1 2002-01-16 10:25:23 markom Exp $
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 */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.