#include <STDLIB.H>
Link against:
estlib.lib
__need_size_t
Description
__need_wchar_t
Description
EXIT_FAILURE 1
Description
EXIT_SUCCESS 0
Description
RAND_MAX 0x7fffffff
Description
atexit _epoc32_atexit
Description
Workaround a built-in prototype in MSVC 5.0
_epoc32_atexit(void(*)(void))
IMPORT_C int _epoc32_atexit(void(*_func)(void));
Description
Parameters
Return value
IMPORT_C int abs(int);
Description
Return absolute value of integer parameter.
Parameters
Return value
int |
The absolute value of n.
|
|
IMPORT_C double atof(const char *_nptr);
Description
Convert string to double. Parses string interpreting its content as a floating point number and returns a value of type double.
Parameters
const char *_nptr |
String representing a floating point number.
|
|
Return value
double |
The converted floating point value of the input string. On overflow the result is undefined. If an error occurs 0.0 is returned.
|
|
IMPORT_C int atoi(const char *_nptr);
Description
Convert string to integer. Parses string interpreting its content as a number and returns an int value.
Parameters
const char *_nptr |
String representing an integer number.
|
|
Return value
int |
The converted integer value of the input string. On overflow the result is undefined. If an error occurs 0 is returned.
|
|
bsearch(const void *,const void *,size_t,size_t,int(*)(const void *, const void *))
IMPORT_C void* bsearch(const void *_key, const void *_base, size_t _nmemb, size_t _size, int(*_compar)(const void *, const
void *));
Description
searches an array beginning at <[base]> for any element that matches <[key]>, using binary search
Parameters
IMPORT_C void* calloc(size_t _nmemb, size_t _size);
Description
Parameters
IMPORT_C div_t div(int _numer, int _denom);
Description
Divide two integer values. numer is divided by denom. Quotient and remainder are returned in a div_t
div_t
structure.
Parameters
int _numer |
Numerator.
|
int _denom |
Denominator.
|
|
Return value
IMPORT_C void exit(int _status);
Description
Parameters
IMPORT_C void free(void *);
Description
Parameters
IMPORT_C char* getenv(const char *_string);
Description
Get string from environment.
Parameters
const char *_string |
Null-terminated string containing the name of the requested variable.
|
|
Return value
char * |
A null-terminated string with the value of the requested environment variable or NULL if that environment variable does not
exist.
|
|
IMPORT_C wchar_t* wgetenv(const wchar_t *_string);
Description
Parameters
Return value
IMPORT_C void* malloc(size_t _size);
Description
Parameters
mbtowc(wchar_t *,const char *,size_t)
IMPORT_C int mbtowc(wchar_t *pwc, const char *s, size_t n);
Description
Converts the multibyte character addressed by s into the corresponding UNICODE character pwc
Parameters
wchar_t wchar_t *pwc |
Is the address of a wide character, type wchar_t, to receive the UNICODE equivalent of s.
|
const char *s |
Points to the multibyte character to be converted to UNICODE.
|
size_t size_t n |
Is the maximum width, in bytes, for which to scan s for a valid multibyte sequence. Regardless of the value of n, no more
than MB_CUR_MAX bytes are examined.
|
|
Return value
int |
the length, in bytes, of the multibyte character for which it found a UNICODE equivalent
|
|
IMPORT_C int wctomb(char *s, wchar_t wc);
Description
Converts a wide character to a multibyte character
Parameters
Return value
int |
If s is null, the return value is true (non-zero) if multibyte characters have state-dependent encodings, or false (zero)
if they do not.
|
|
mbstowcs(wchar_t *,const char *,size_t)
IMPORT_C int mbstowcs(wchar_t *pwc, const char *s, size_t n);
Description
Parameters
Return value
wcstombs(char *,const wchar_t *,size_t)
IMPORT_C int wcstombs(char *s, const wchar_t *pwc, size_t n);
Description
The wcstombs function converts a wide string to a string of multibyte characters.
Parameters
Return value
mblen(const char *,size_t)
IMPORT_C int mblen(const char *string, size_t size);
Description
If string is not a null pointer, the function returns the number of bytes in the multibyte string that constitute the next
multibyte character, or it returns -1 if the next n (or the remaining) bytes do not constitute a valid multibyte character.
mblen does not include the terminating null in the count of bytes.
Parameters
Return value
int |
the number of bytes in the multibyte string
|
|
qsort(void *,size_t,size_t,int(*)(const void *, const void *))
IMPORT_C void qsort(void *_base, size_t _nmemb, size_t _size, int(*_compar)(const void *, const void *));
Description
Sort an array.
Parameters
void *_base |
|
size_t size_t _nmemb |
|
size_t size_t _size |
describes the size of each element of the array
|
int(*)(const void *, const void *) _compar |
|
|
IMPORT_C int rand(void);
Description
Returns a different integer each time it is called; each integer is chosen by an algorithm designed to be unpredictable, so
that you can use <> when you require a random number.
Return value
int |
the next pseudo-random integer in sequence; it is a number between 0 and RAND_MAX (inclusive).
|
|
IMPORT_C void* realloc(void *_r, size_t _size);
Description
Parameters
IMPORT_C void srand(unsigned _seed);
Description
Parameters
strtod(const char *,char **)
IMPORT_C double strtod(const char *_n, char **_end_PTR);
Description
Convert string to double-precision floating-point value. Parses string interpreting its content as a floating-point value
until a character that can not be interpreted is found, and returns a double precision value.
Parameters
const char *_n |
String representing a floating point number.
|
char **_end_PTR |
Address of a pointer. This is filled by the function with the address where scan has ended. Serves to determine where there
is the first non-numerical character in the string.
|
|
Return value
double |
The converted double value from the input string. If an error occurs 0 is returned.
|
|
strtol(const char *,char **,int)
IMPORT_C long strtol(const char *_n, char **_end_PTR, int _base);
Description
Convert string to long integer.
Parameters
const char *_n |
String representing an integer number.
|
char **_end_PTR |
Address of a pointer. This is filled by the function with the address where scan has ended.
|
int _base |
Numeral radix in which the number to be interpreted. Must be 0 or be between 2 and 36. If it is 0 the radix of the string
is determined by the initial characters of the string
|
|
Return value
long |
The converted long int value from the input string. If an error occurs or no conversion can be made 0 is returned.
|
|
strtoul(const char *,char **,int)
IMPORT_C unsigned long strtoul(const char *_n_PTR, char **_end_PTR, int _base);
Description
Convert string to unsigned long integer. Parses string interpreting its content as an integer value until a character that
can not be interpreted is found, and returns an unsigned long value.
Parameters
const char *_n_PTR |
String representing an integer number.
|
char **_end_PTR |
Address of a pointer. This is filled by the function with the address where scan has ended. Serves to determine where there
is the first non-numerical character in the string.
|
int _base |
Numeral radix in which the number to be interpreted. Must be 0 or be between 2 and 36. If it is 0 the radix of the string
is determined by the initial characters of the string:
|
|
Return value
unsigned long |
The converted unsigned long value from the input string. If an error occurs or no conversion can be made 0 is returned.
|
|
IMPORT_C int system(const char *_string);
Description
Execute command.
Parameters
const char *_string |
Null-terminated string containing the system command to be executed.
|
|
Return value
int |
On Success, the command interpreter returns an adequate value; generally 0 indicates that the action performed by the command
interpreter terminated with no errors. On Failure, return -1.
|
|
IMPORT_C int wsystem(const wchar_t *_string);
Description
A wide-character version of a system(const char *)
system(const char *)
.
Parameters
Return value
setenv(const char *,const char *,int)
IMPORT_C int setenv(const char *_string, const char *_value, int _overwrite);
Description
Adds or changes an environment variable.
Parameters
const char *_string |
|
const char *_value |
|
int _overwrite |
|
|
Return value
int |
On Success, returns 0. On Failure, returns -1, errno may be set and the environment shall be unchanged.
|
|
IMPORT_C void unsetenv(const char *_name);
Description
Removes an environment variable.
Parameters
wsetenv(const wchar_t *,const wchar_t *,int)
IMPORT_C int wsetenv(const wchar_t *_string, const wchar_t *_value, int _overwrite);
Description
A wide-character version of a setenv(const char *,const char *,int)
setenv(const char *,const char *,int)
Parameters
Return value
wunsetenv(const wchar_t *)
IMPORT_C void wunsetenv(const wchar_t *_name);
Description
A wide-character version of a unsetenv(const char *)
unsetenv(const char *)
Parameters