/*--------------------------------------------------------------------------
STDLIB.H

Standard functions.
Copyright (c) 1988-1997 Keil Elektronik GmbH and Keil Software, Inc.
All rights reserved.
--------------------------------------------------------------------------*/

#ifndef _SIZE_T
 #define _SIZE_T
 typedef unsigned int size_t;
#endif

#ifndef NULL
 #define NULL ((void *) 0L)
#endif

#ifndef _WCHAR_T_DEFINED_
#define _WCHAR_T_DEFINED_
typedef char wchar_t;
#endif


#pragma SAVE
#pragma REGPARMS

extern int    abs  (int   val);
extern long  labs  (long  val);

extern float atof (void *s1);
extern long  atol (void *s1);
extern int   atoi (void *s1);
extern int   rand ();
extern void  srand (int);

#define _MALLOC_MEM_	xdata

extern int  init_mempool          (void _MALLOC_MEM_ *p, unsigned int size);
extern void _MALLOC_MEM_ *malloc  (unsigned int size);
extern void free                  (void _MALLOC_MEM_ *p);
extern void _MALLOC_MEM_ *realloc (void _MALLOC_MEM_ *p, unsigned int size);
extern void _MALLOC_MEM_ *calloc  (unsigned int size, unsigned int len);

#pragma RESTORE
