Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <STDLIB.H>
Link against: estlib.lib

_STDLIB_H_

_STDLIB_H_

Description

[Top]


__need_size_t

__need_size_t

Description

[Top]


__need_wchar_t

__need_wchar_t

Description

[Top]


labs

labs abs

Description

[Top]


ldiv

ldiv div

Description

[Top]


ldiv_t

ldiv_t div_t

Description

[Top]


EXIT_FAILURE

EXIT_FAILURE 1

Description

[Top]


EXIT_SUCCESS

EXIT_SUCCESS 0

Description

[Top]


RAND_MAX

RAND_MAX 0x7fffffff

Description

[Top]


MB_CUR_MAX

MB_CUR_MAX 3

Description

[Top]


atexit

atexit _epoc32_atexit

Description

Workaround a built-in prototype in MSVC 5.0

[Top]


atol

atol atoi

Description

[Top]


_epoc32_atexit(void(*)(void))

IMPORT_C int _epoc32_atexit(void(*_func)(void));

Description

Parameters

void(*)(void) _func

Return value

int

[Top]


abs(int)

IMPORT_C int abs(int);

Description

Return absolute value of integer parameter.

Parameters

int

Integer value.

Return value

int

The absolute value of n.

[Top]


atof(const char *)

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.

[Top]


atoi(const char *)

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.

[Top]


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

const void *_key

const void *_base

size_tsize_t _nmemb

size_tsize_t _size

int(*)(const void *, const void *) _compar

[Top]


calloc(size_t,size_t)

IMPORT_C void* calloc(size_t _nmemb, size_t _size);

Description

Parameters

size_tsize_t _nmemb

size_tsize_t _size

[Top]


div(int,int)

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_tdiv_t structure.

Parameters

int _numer

Numerator.

int _denom

Denominator.

Return value

div_tdiv_t

A div_tdiv_t structure is returned

[Top]


exit(int)

IMPORT_C void exit(int _status);

Description

Parameters

int _status

[Top]


free(void *)

IMPORT_C void free(void *);

Description

Parameters

void *

[Top]


getenv(const char *)

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.

[Top]


wgetenv(const wchar_t *)

IMPORT_C wchar_t* wgetenv(const wchar_t *_string);

Description

Parameters

const wchar_twchar_t *_string

Return value

wchar_twchar_t *

[Top]


malloc(size_t)

IMPORT_C void* malloc(size_t _size);

Description

Parameters

size_tsize_t _size

[Top]


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_twchar_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_tsize_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

[Top]


wctomb(char *,wchar_t)

IMPORT_C int wctomb(char *s, wchar_t wc);

Description

Converts a wide character to a multibyte character

Parameters

char *s

multibyte character

wchar_twchar_t wc

wide character

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.

[Top]


mbstowcs(wchar_t *,const char *,size_t)

IMPORT_C int mbstowcs(wchar_t *pwc, const char *s, size_t n);

Description

Parameters

wchar_twchar_t *pwc

const char *s

size_tsize_t n

Return value

int

[Top]


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

char *s

multibyte string

const wchar_twchar_t *pwc

wide string

size_tsize_t n

number of bytes written to.

Return value

int

[Top]


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

const char *string

size_tsize_t size

Return value

int

the number of bytes in the multibyte string

[Top]


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_tsize_t _nmemb

size_tsize_t _size

describes the size of each element of the array

int(*)(const void *, const void *) _compar

[Top]


rand(void)

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).

[Top]


realloc(void *,size_t)

IMPORT_C void* realloc(void *_r, size_t _size);

Description

Parameters

void *_r

size_tsize_t _size

[Top]


srand(unsigned)

IMPORT_C void srand(unsigned _seed);

Description

Parameters

unsigned _seed

[Top]


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.

[Top]


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.

[Top]


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.

[Top]


system(const char *)

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.

[Top]


wsystem(const wchar_t *)

IMPORT_C int wsystem(const wchar_t *_string);

Description

A wide-character version of a system(const char *)system(const char *).

Parameters

const wchar_twchar_t *_string

Return value

int

[Top]


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.

[Top]


unsetenv(const char *)

IMPORT_C void unsetenv(const char *_name);

Description

Removes an environment variable.

Parameters

const char *_name

[Top]


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

const wchar_twchar_t *_string

const wchar_twchar_t *_value

int _overwrite

Return value

int

[Top]


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

const wchar_twchar_t *_name