xstrdup.c
来自「Linux下的TFTP源代码」· C语言 代码 · 共 21 行
C
21 行
/* * xstrdup.c * * Simple error-checking version of strdup() * */#include "config.h"char *xstrdup(const char *s){ char *p = strdup(s); if ( !p ) { fprintf(stderr, "Out of memory!\n"); exit(128); } return p;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?