Standard C Library/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
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
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 |
| ©Nokia 2007 |
|