util.h

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· C头文件 代码 · 共 36 行

H
36
字号
#ifndef lint/*	@(#)util.h	1.1	ULTRIX	6/28/86	*//**************************************************************** *								* *  Licensed to Digital Equipment Corporation, Maynard, MA	* *		Copyright 1985 Sun Microsystems, Inc.		* *			All rights reserved.			* *								* ****************************************************************/#endif lint#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();char *getline();void fatal();

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?