S60 Open C
Standard C Library/Standard Library Functions

Standard C Library/Standard Library Functions

Table of Contents

Standard Library Functions

 


Standard Library Functions

Arithmetic Functions

Function

Description

abs Computes the absolute value of the integer
labs, llabs Computes the absolute value of the integer

Integer Division

Functions Description
div Computes quotient and remainder of an integer division
ldiv Computes quotient and remainder of an integer division
lldiv Computes quotient and remainder of an integer division

Parsing of Numbers

Functions Description
atof Converts a string to a double
atol Converts a string to an integer ASCII string to long or long long integer
atoll Converts a string to an integer ASCII string to long or long long integer
atoi Converts a string to an integer

Pseudo-Random Numbers

Functions Description
rand Pseudo-random number generator
srand Pseudo-random number generator

Directory Handling

Functions Description
getcwd Gets current working directory

File Attributes

Functions Description
realpath Returns the canonicalized absolute pathname

Temporary Files

Functions Description
tempnam Creates a name for a temporary file
mkstemp Creates a unique temporary file
tmpfile Creates a temporary file
tmpnam Creates a name for a temporary file

Non - local control flow

Functions Description
setjmp Saves stack context for non-local goto
longjmp Non-local jump to a saved stack context

Searching and Sorting

Functions Description
bsearch Binary search of a sorted array
qsort Sorts an array

Namespaces

Function

Description

inet_pton Create a network address structure
inet_addr Internet address manipulation routines
inet_ntoa Internet address manipulation routines
htonl Converts values between host and network byte order
htons Converts values between host and network byte order
ntohl Converts values between host and network byte order
ntohs Converts values between host and network byte order

Path Handling

Function

Description

confstr Gets configuration dependent string variables

Command Line Parsing

Functions Description
putenv Changes or adds an environment variable
getenv Gets an environment variable
setenv, unsetenv Changes or adds an environment variable
getopt Parses command options
getopt_long Parse command line options

Memory Allocation

Functions Description
calloc Allocate and free dynamic memory
free Allocate and free dynamic memory
malloc Allocate and free dynamic memory
realloc Allocate and free dynamic memory

Shell Command Execution

Functions Description
system Executes a shell command

Give feedback of this article


©Nokia 2007

Back to top


This material, including documentation and any related computer programs, is protected by copyright controlled by Nokia. All rights are reserved. Copying, including reproducing, storing, adapting or translating, any or all of this material requires the prior written consent of Nokia. This material also contains confidential information, which may not be disclosed to others without the prior written consent of Nokia.

Nokia is a registered trademark of Nokia Corporation. S60 and logo is a trademark of Nokia Corporation. Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. Other company and product names mentioned herein may be trademarks or tradenames of their respective owners.