📄 xr
字号:
@c ----------------------------------------------------------------------
@node xrealloc, memory
@heading @code{xrealloc}
@subheading Syntax
@example
void *xrealloc(void *ptr, size_t size);
@end example
@subheading Description
This function is just like @code{realloc} (@pxref{realloc}), except that
if there is no more memory, it prints an error message and exits. It
can also properly handle @var{ptr} being @code{NULL}.
@subheading Return Value
A pointer to a possibly new block.
@subheading Example
@example
char *buf;
buf = (char *)xrealloc(buf, new_size);
@end example
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -