util.h
来自「操作系统SunOS 4.1.3版本的源码」· C头文件 代码 · 共 29 行
H
29 行
/* @(#)util.h 1.1 92/07/30 (C) 1985 Sun Microsystems, Inc. */#define EOS '\0'#ifndef NULL # define NULL ((char *) 0)#endif#define MALLOC(object_type) ((object_type *) malloc(sizeof(object_type)))#define FREE(ptr) free((char *) ptr) #define STRCPY(dst,src) \ (dst = malloc((unsigned)strlen(src)+1), (void) strcpy(dst,src))#define STRNCPY(dst,src,num) \ (dst = malloc((unsigned)(num) + 1),\ (void)strncpy(dst,src,num),(dst)[num] = EOS) extern char *malloc();extern char *alloca();char *getline();void fatal();
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?