1 thought on “Malloc in NDK, which file is the header file of Memset”
Nathan
Character processing function This functions of this category are used to process a single character, including the type of character test and the lower case conversion of the character head file ctype.h
List of Function u003C> The functional class function Detailed description Character test whether the letter and digital Isalnum whether the letter isAlpha whether the character is controlled by the digital Isdigit r n Whether the character can be displayed (except the empty grid) isgraph is the displayed character (including space) Isprint whether it is neither a space, nor the alphabet and numbers, the displayed character ispunct
Whether the capital letter ispper Whether or not hexadecimal numbers (0-9, A-F) character isxdigit Character -clarscase conversion functions convert to capital letters R n regionalization The functions in this category are used to handle language differences in different countries.
The head file local.h
function list function classes functional use details regional control areas Setlocale n digital format agreement query The format conversion of the country's currency, date, time, etc.
mathematics functions This classification gives a variety of mathematical calculation functions. It must be reminded that the data format in the ANSI C standard does not conform to the ANSI C standard does not conform to the ANSI C standard. IEEE754 standard, some C language compilers follow the IEEE754 (such as FRINKLIN C51)
The head file Math.h n function list function classes. R n The error condition processing definition domain error (the input parameter value of the function is not within the specified range) D value domain error (the return value of the function is not within the specified range) n Anyway, slicing asin Anyway, cut atan Anyway, 2 atan2 cos sine R N Shuangqu sinusar sinh The double curved tanh index and the number index function EXP index decomposition function Frexp
The number of pairs with 10 bottoms of LOG10 The floating point number decomposition function MODF The power function power function Pow Seeking the lower limit close to the integer CEIL A absolute value fabs In the upper limit close Floor to find the remaining number FMOD
Transition code. Header file setjmp.h ie.h
function list function class functions Detailed description n Signal processing This function is used to handle the exception during the program execution process.
The head file signal.h
function list function classes functional use details specified signal processing function signal n send signal raise n R n The variable parameter processing This functions are used to implement the number of parameters such as Printf, Scanf and other parameters.
The header file sTDARG.H
function list function classes functional use details variable parameter access macro parameters start macro VA_START r n variety parameters end the macro VA_END The variable parameter access macro access to the next variable parameter macro VA_ARG
Input and output function Wait for various input and output devices, and various functions realize
header file stdio.h
function list File operation The delete file Remove modified file name rename to generate temporary file name tmpfile n refreshing the buffer FFLUSH In the file FOPEN The connecting the existing flow pointer and the new file connecting Freen Set the disk buffer setbuf Set the disk buffer setvbuf n Format input and output function Format output FPrintf Format input FSCANF Format output (console) Printf Format input (console) scanf format output to the buffer Sprintf r. n Input SSCANF formatting output VFPRINTF formatting output output VPRINTF formatted output output output output output output output output output output output output VSprintf n character input output function input a character FGETC n String input FGETS -character output FPUTC -string output FPUTS -character input (console) getc -character input (console) getchar -string input (control ) Gets Character output (console) PUTC -character output (console) Putchar -string output (console) PUTS character output to the flow head UNGETC Direct input and output Fread Procate FWRITE file positioning function to obtain file position FGETPOS file position movement Fseek file position setting Fsetpos Get the file position ftell The file position reappear REMIND Clearerr The end of the file judgment Feof file error detection Ferror Classified above, but it is necessary to program.
The head file stdlib.h
function list function classes. N -string convert to long -necked atol -string converted to float -point number strtod -string converted to long integer strtol n -string converted to non -symbol long integer strtoul n pseudo -random random random random The sequence generates a function to generate random number RAND The start -up value SRAND The storage management function to allocate memory Calloc
ABORT In exit program execution, and removing environmental variables ATexit n exit program execute EXIT Other programs System Searching and sorting tools Two -point search (data must be sorted) BSEARCH Quickly sorting QSORT Callated operation functions for absolute value ABS div Shanghe remains In absolute value Labs Ilvas for long plastic surgery, the remaining number LDIV Multial byte character function to obtain multi -byte characters by bytes Mblen Get the number of bytes of multi -byte characters MBTOWC multi -byte character conversion wctomb The string operation of multi -byte characters converts the multi -byte skewers to an integer array mbstowcs n Change to character array MCStowbs
Character string processing This functions of this classification are used to merge and compare the operation of the string
R n F function list The functional category functional description character string copy block copy (purpose and source storage area cannot overlap) MEMCPY block copy (destination and source storage area Overlap) Memmove The string copy Strcpy Compared with MEMCMP string comparison STRCMP -string comparison (for non -British characters) Strcoll RM Character and string Finding characters Find Memchr Character Find Strchr Character Strings Find Strcspn Character String Find Strpbrk Character Find Strspn Character Strings Find strstr string to decompose Strtok The miscellaneous function strings Set MemSet Error string mapping Strerror Find string length Strlen n date and time Function The duration processing function
The head file Time.h
function list function classes functional use detailed description time operation function to get processor time CLOCK Getting time difference Difftime Set time MKTime Getting time Time time conversion function to get asCtime The time of the string represents CTIME . The time of the specified format is strftime
The future development direction of the function library The this section is used to explain how the various types of function libraries will develop in the future.
The header file of the sequence number library category file 1 Error processing Errno.h 2 Character processing ctype.h 3 Regional local.h 4 mathematical function math. H 5 signal processing signal.h 6 Input output stdio.h 7 Practical tool program Stdlib.h 8 Strough processing string.h
Character processing function
This functions of this category are used to process a single character, including the type of character test and the lower case conversion of the character
head file ctype.h
List of Function u003C>
The functional class function Detailed description
Character test whether the letter and digital Isalnum
whether the letter isAlpha
whether the character is controlled by the digital Isdigit r
n Whether the character can be displayed (except the empty grid) isgraph
is the displayed character (including space) Isprint
whether it is neither a space, nor the alphabet and numbers, the displayed character ispunct
Whether the capital letter ispper
Whether or not hexadecimal numbers (0-9, A-F) character isxdigit
Character -clarscase conversion functions convert to capital letters
R n
regionalization
The functions in this category are used to handle language differences in different countries.
The head file local.h
function list
function classes functional use details
regional control areas Setlocale n digital format agreement query The format conversion of the country's currency, date, time, etc.
mathematics functions
This classification gives a variety of mathematical calculation functions. It must be reminded that the data format in the ANSI C standard does not conform to the ANSI C standard does not conform to the ANSI C standard. IEEE754 standard, some C language compilers follow the IEEE754 (such as FRINKLIN C51)
The head file Math.h
n function list
function classes. R n The error condition processing definition domain error (the input parameter value of the function is not within the specified range)
D value domain error (the return value of the function is not within the specified range)
n Anyway, slicing asin
Anyway, cut atan
Anyway, 2 atan2
cos
sine
R N Shuangqu sinusar sinh
The double curved tanh
index and the number index function EXP
index decomposition function Frexp
The number of pairs with 10 bottoms of LOG10
The floating point number decomposition function MODF
The power function power function Pow
Seeking the lower limit close to the integer CEIL
A absolute value fabs
In the upper limit close Floor
to find the remaining number FMOD
Transition code. Header file setjmp.h ie.h
function list
function class functions Detailed description
n Signal processing
This function is used to handle the exception during the program execution process.
The head file signal.h
function list
function classes functional use details
specified signal processing function signal n send signal raise n R n
The variable parameter processing
This functions are used to implement the number of parameters such as Printf, Scanf and other parameters.
The header file sTDARG.H
function list
function classes functional use details
variable parameter access macro parameters start macro VA_START r
n variety parameters end the macro VA_END
The variable parameter access macro access to the next variable parameter macro VA_ARG
Input and output function
Wait for various input and output devices, and various functions realize
header file stdio.h
function list
File operation
The delete file Remove
modified file name rename
to generate temporary file name tmpfile
n refreshing the buffer FFLUSH
In the file FOPEN
The connecting the existing flow pointer and the new file connecting Freen
Set the disk buffer setbuf
Set the disk buffer setvbuf n Format input and output function Format output FPrintf
Format input FSCANF
Format output (console) Printf
Format input (console) scanf
format output to the buffer Sprintf r. n Input SSCANF
formatting output VFPRINTF
formatting output output VPRINTF
formatted output output output output output output output output output output output output VSprintf n character input output function input a character FGETC n String input FGETS
-character output FPUTC
-string output FPUTS
-character input (console) getc
-character input (console) getchar
-string input (control ) Gets
Character output (console) PUTC
-character output (console) Putchar
-string output (console) PUTS
character output to the flow head UNGETC
Direct input and output Fread
Procate FWRITE
file positioning function to obtain file position FGETPOS
file position movement Fseek
file position setting Fsetpos
Get the file position ftell
The file position reappear REMIND
Clearerr
The end of the file judgment Feof
file error detection Ferror
Classified above, but it is necessary to program.
The head file stdlib.h
function list
function classes. N -string convert to long -necked atol
-string converted to float -point number strtod
-string converted to long integer strtol n -string converted to non -symbol long integer strtoul n pseudo -random random random random The sequence generates a function to generate random number RAND
The start -up value SRAND
The storage management function to allocate memory Calloc
ABORT
In exit program execution, and removing environmental variables ATexit n exit program execute EXIT
Other programs System
Searching and sorting tools Two -point search (data must be sorted) BSEARCH
Quickly sorting QSORT
Callated operation functions for absolute value ABS
div
Shanghe remains
In absolute value Labs
Ilvas for long plastic surgery, the remaining number LDIV
Multial byte character function to obtain multi -byte characters by bytes Mblen
Get the number of bytes of multi -byte characters MBTOWC
multi -byte character conversion wctomb
The string operation of multi -byte characters converts the multi -byte skewers to an integer array mbstowcs n Change to character array MCStowbs
Character string processing
This functions of this classification are used to merge and compare the operation of the string
R n
F function list
The functional category functional description
character string copy block copy (purpose and source storage area cannot overlap) MEMCPY
block copy (destination and source storage area Overlap) Memmove
The string copy Strcpy
Compared with MEMCMP
string comparison STRCMP
-string comparison (for non -British characters) Strcoll
RM
Character and string Finding characters Find Memchr
Character Find Strchr
Character Strings Find Strcspn
Character String Find Strpbrk
Character Find Strspn
Character Strings Find strstr
string to decompose Strtok
The miscellaneous function strings Set MemSet
Error string mapping Strerror
Find string length Strlen
n date and time Function
The duration processing function
The head file Time.h
function list
function classes functional use detailed description
time operation function to get processor time CLOCK
Getting time difference Difftime
Set time MKTime
Getting time Time
time conversion function to get asCtime
The time of the string represents CTIME
. The time of the specified format is strftime
The future development direction of the function library
The this section is used to explain how the various types of function libraries will develop in the future.
The header file of the sequence number library category file
1 Error processing Errno.h
2 Character processing ctype.h
3 Regional local.h
4 mathematical function math. H
5 signal processing signal.h
6 Input output stdio.h
7 Practical tool program Stdlib.h
8 Strough processing string.h