sizetype.c

来自「speech signal process tools」· C语言 代码 · 共 31 行

C
31
字号
/*	  This material contains proprietary software of Entropic Speech, Inc.     Any reproduction, distribution, or publication without the prior	     written permission of Entropic Speech, Inc. is strictly prohibited.  Any public distribution of copies of this work authorized in writing by  Entropic Speech, Inc. must bear the notice			 								      "Copyright (c) 1987 Entropic Speech, Inc.; All rights reserved" 				| sizetype - Joseph T. Buck						     || 									     || sizetype (type), where type is 'b', 'w', 'l', 'f', 'd', or 'm', returns the|| size of the type. sizetype ('m') is 1 (as is sizetype (other))	     |+---------------------------------------------------------------------------*/#ifndef lint	static char *sccsid = "@(#)sizetype.c	1.3	11/19/87 ESI";#endifsizetype (type) char type; {    switch (type) {	case 'b': return sizeof (char);	case 'w': return sizeof (short);	case 'l': return sizeof (long);	case 'f': return sizeof (float);	case 'd': return sizeof (double);	default: return 1;    }}	

⌨️ 快捷键说明

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