Everything
7.4.8 Standard utility functions

Standard Utility functions are as follows.

Table 7.10

Standard Utility Functions

Function/Macro Name

Outline

abs

Output absolute value (int type)

labs

Output absolute value (long type)

llabs

Output absolute value (long long type)

bsearch

Binary search

qsort

Sort

div

Division (int type)

ldiv

Division (long type)

lldiv

Division (long long type)

atoi

Conversion of character string to integer (int type)

atol

Conversion of character string to integer (long type)

atoll

Conversion of character string to integer (long long type)

strtol

Conversion of character string to integer (long type) and storing pointer in last character string

strtoul

Conversion of character string to integer (unsigned long type) and storing pointer in last character string

strtoll

Conversion of character string to integer (long long type) and storing pointer in last character string

strtoull

Conversion of character string to integer (unsigned long long type) and storing pointer in last character string

atoff

Conversion of character string to floating-point number (float type)

atof

Conversion of character string to floating-point number (double type)

strtodf

Conversion of character string to floating-point number (float type) (storing pointer in last character string)

strtod

Conversion of character string to floating-point number (double type) (storing pointer in last character string

rand

Pseudorandom number sequence generation

srand

Setting of type of pseudorandom number sequence

abort

Terminates the program