📄 ma
字号:
@c ----------------------------------------------------------------------
@node __main, process
@heading @code{__main}
@subheading Description
This function is used internally to initialize the application, and
should not be directly called by the programmer.
@c ----------------------------------------------------------------------
@node malloc, memory
@heading @code{malloc}
@subheading Syntax
@example
#include <stdlib.h>
void *malloc(size_t size);
@end example
@subheading Description
This function allocates a chunk of memory from the heap large enough to
hold any object that is @var{size} bytes in length. This memory must be
returned to the heap with @code{free} (@pxref{free}).
@subheading Return Value
A pointer to the allocated memory, or @code{NULL} if there isn't enough
free memory to satisfy the request.
@subheading Example
@example
char *c = (char *)malloc(100);
@end example
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -