Hardware Reference
In-Depth Information
srand
Initialize random number generator
strtod
Convert string to double-precision floating-point value
strtol
Convert string to long integer
strtoul
Convert string to unsigned long integer
swab
Swap bytes
Execute command
system
Convert unsigned long integer to string
ultoa
Note that a number of the functions listed here are
not
part of the ANSI-C
standard but nevertheless they are commonly supported by compilers.
String.h function summary
The
string.h
standard C library to manipulate C strings:
Search buffer for a character
memchr
Compare two buffers
memcmp
Copy bytes to buffer from buffer
memcpy
Copy bytes to buffer from buffer
memmove
Fill buffer with specified character
memset
Append string
strcat
Find character in string
strchr
Compare two strings
strcmp
Compare two strings using locale settings
strcoll
Copy string
strcpy
Search string for occurrence of character set
strcspn
Get pointer to error message string
strerror
Return string length
strlen
Append substring to string
strncat
Compare some characters of two strings
strncmp
Copy characters from one string to another
strncpy
Scan string for specified characters
strpbrk
Find last occurrence of character in string
strrchr
Get length of substring composed of given characters
strspn
Find substring
strstr
Sequentially truncate string if delimiter is found
strtok
Transform string using locale settings
strxfrm
Time.h
The
time.h
library provides access to time and date related functions:
Convert
tm
structure to string
asctime
Return number of clock ticks since process start
clock
Convert
time_t
value to string
ctime
Return difference between two times
difftime
Convert
time_t
value to
tm
structure as UTC time
gmtime
Convert
time_t
value to
tm
structure as local time
localtime
Convert
tm
structure to
time_t
value
mktime
Get current time
time