" in C language is: the header file is the "standard library" standard library header file. This file contains the definition of the C language standard library function "stdlib"; it contains the most commonly used system functions in C and C++ languages."/> " in C language is: the header file is the "standard library" standard library header file. This file contains the definition of the C language standard library function "stdlib"; it contains the most commonly used system functions in C and C++ languages.">
Home >Backend Development >C#.Net Tutorial >What does include
C language "include
" means: the header file is the "standard library" standard library header file. This file contains the definition of the C language standard library function "stdlib"; it contains the most commonly used system functions of C and C languages.
##The meaning of "include
stdlib.h usage
1 Function name: calloc
Function prototype:void * calloc(unsigned n,unsign size);Function Function: Allocate memory continuous space for n data items. The size of each data item is sizeThe function returns: The starting address of the allocated memory unit. If unsuccessful, returns 0
2 Function name: free
Function prototype:void free(void* p);Function function: Release the memory area pointed to by pFunction return:Parameter description: p-released pointer
3 Function name: malloc
Function prototype:void * malloc(unsigned size);Function: allocate size bytes The storage area function returns: the allocated memory area address, if the memory is not enough, returns 0
4 Function name: realloc
Function prototype :void * realloc(void * p,unsigned size);Function function: Change the size of the allocated memory area pointed by p to size, size can be larger or smaller than the original allocated spaceFunction return: Return points to the memory area Pointer.NULL-allocation failed
5 Function name: rand
Function prototype:int rand(void);Function function: Generate a random number between 0 and 32767 Integer (between 0 and 0x7fff)Function returns: random integer
Extended information:
C Language Tutorial"
The above is the detailed content of What does include