/*
    AUTOMATICALLY GENERATED BY tspec 2.10
    API SUBSET: ansi:stdlib.h (VERSION 2.6)
*/

#ifndef __TDF_ANSI_STDLIB_H
#define __TDF_ANSI_STDLIB_H

#ifdef __cplusplus
extern "C" {
#endif

#pragma TenDRA declaration block api__ansi__stdlib begin

#pragma extend interface "../shared/ansi.api/null.h"
#ifndef __TDF_ANSI_STDDEF_H_SIZE_T
#pragma extend interface "../shared/ansi.api/size_t.h"
#endif /* __TDF_ANSI_STDDEF_H_SIZE_T */
#ifndef __TDF_ANSI_STDDEF_H_WCHAR_T
#pragma extend interface "../shared/ansi.api/wchar_t.h"
#endif /* __TDF_ANSI_STDDEF_H_WCHAR_T */
#ifndef __TDF_ANSI_STDLIB_H_BOTTOM
#pragma extend interface "../shared/ansi.api/bottom.h"
#endif /* __TDF_ANSI_STDLIB_H_BOTTOM */
#pragma token EXP const : int : EXIT_FAILURE # ansi.stdlib.EXIT_FAILURE
#pragma token EXP const : int : EXIT_SUCCESS # ansi.stdlib.EXIT_SUCCESS
#pragma token EXP const : int : RAND_MAX # ansi.stdlib.RAND_MAX
#pragma token FUNC __local_bottom (void) : abort # ansi.stdlib.abort
#pragma token FUNC int (int) : abs # ansi.stdlib.abs
#pragma token FUNC double (const char *) : atof # ansi.stdlib.atof
#pragma token FUNC int (const char *) : atoi # ansi.stdlib.atoi
#pragma token FUNC long (const char *) : atol # ansi.stdlib.atol
#pragma token FUNC __local_bottom (int) : exit # ansi.stdlib.exit
#ifndef __TDF_ANSI_STDLIB_H_FREE
#pragma extend interface "../shared/ansi.api/free.h"
#endif /* __TDF_ANSI_STDLIB_H_FREE */
#pragma token FUNC char * (const char *) : getenv # ansi.stdlib.getenv
#pragma token FUNC int (void) : rand # ansi.stdlib.rand
#pragma token FUNC void (unsigned int) : srand # ansi.stdlib.srand
#ifndef __JUST_POSIX
#pragma token FUNC double (const char *, char **) : strtod # ansi.stdlib.strtod
#pragma token FUNC long (const char *, char **, int) : strtol # ansi.stdlib.strtol
#ifndef __TDF_ANSI_STDLIB_H_SYSTEM
#pragma extend interface "../shared/ansi.api/system.h"
#endif /* __TDF_ANSI_STDLIB_H_SYSTEM */
#ifndef __JUST_XPG3
#pragma token EXP rvalue : int : MB_CUR_MAX # ansi.stdlib.MB_CUR_MAX
#pragma token STRUCT div_t # ansi.stdlib.div_t
#pragma token MEMBER int : div_t : quot # ansi.stdlib.div_t.quot
#pragma token MEMBER int : div_t : rem # ansi.stdlib.div_t.rem
#pragma token STRUCT ldiv_t # ansi.stdlib.ldiv_t
#pragma token MEMBER long : ldiv_t : quot # ansi.stdlib.ldiv_t.quot
#pragma token MEMBER long : ldiv_t : rem # ansi.stdlib.ldiv_t.rem
#pragma token FUNC int (void (*) (void)) : atexit # ansi.stdlib.atexit
#pragma token FUNC div_t (int, int) : div # ansi.stdlib.div
#pragma token FUNC long (long) : labs # ansi.stdlib.labs
#pragma token FUNC ldiv_t (long, long) : ldiv # ansi.stdlib.ldiv
#pragma token FUNC unsigned long (const char *, char **, int) : strtoul # ansi.stdlib.strtoul
#pragma token FUNC int (char *, wchar_t) : wctomb # ansi.stdlib.wctomb
#endif /* __JUST_XPG3 */
#endif /* __JUST_POSIX */
#ifndef __TDF_ANSI_STDLIB_H_ALLOC
#pragma extend interface "../shared/ansi.api/alloc.h"
#endif /* __TDF_ANSI_STDLIB_H_ALLOC */
#pragma token FUNC void * (const void *, const void *, size_t, size_t, int (*) (const void *, const void *)) : bsearch # ansi.stdlib.bsearch
#pragma token FUNC void (void *, size_t, size_t, int (*) (const void *, const void *)) : qsort # ansi.stdlib.qsort
#ifndef __JUST_POSIX
#ifndef __JUST_XPG3
#pragma token FUNC int (const char *, size_t) : mblen # ansi.stdlib.mblen
#pragma token FUNC size_t (wchar_t *, const char *, size_t) : mbstowcs # ansi.stdlib.mbstowcs
#pragma token FUNC int (wchar_t *, const char *, size_t) : mbtowc # ansi.stdlib.mbtowc
#pragma token FUNC size_t (char *, const wchar_t *, size_t) : wcstombs # ansi.stdlib.wcstombs
#endif /* __JUST_XPG3 */
#endif /* __JUST_POSIX */

#pragma interface EXIT_FAILURE EXIT_SUCCESS RAND_MAX abort abs atof atoi
#pragma interface atol exit getenv rand srand
#ifndef __JUST_POSIX
#pragma interface strtod strtol
#ifndef __JUST_XPG3
#pragma interface MB_CUR_MAX div_t div_t.quot div_t.rem ldiv_t ldiv_t.quot
#pragma interface ldiv_t.rem atexit div labs ldiv strtoul wctomb
#endif /* __JUST_XPG3 */
#endif /* __JUST_POSIX */
#pragma interface bsearch qsort
#ifndef __JUST_POSIX
#ifndef __JUST_XPG3
#pragma interface mblen mbstowcs mbtowc wcstombs
#endif /* __JUST_XPG3 */
#endif /* __JUST_POSIX */

#pragma TenDRA declaration block end

#ifdef __cplusplus
}
#endif

#endif /* __TDF_ANSI_STDLIB_H */
