📄 bhd.c
字号:
/*--------------------------------------------------------------+| ENTROPIC PROCESSING, INC. || || This material contains proprietary software of Entropic || Processing, Inc. Any reproduction, distribution, or || publication without the the prior written permission of || Entropic Processing, Inc. is strictly prohibited. Any || public distribution of copies of this work authorized in || writing by Entropic Processing, Inc. must bear the notice || || "Copyright 1986 Entropic Processing, Inc." || |+---------------------------------------------------------------+| || bhd -- behead SPS file || || Reads and discards the header of an SPS file and writes the || remainder without change to the standard output. || || Rodney Johnson, Entropic Processing, Inc. || |+--------------------------------------------------------------*/#ifdef SCCS static char *sccs_id = "@(#)bhd.c 1.1 9/4/86";#endif#include <stdio.h>#include <sps/sps.h>#define SYNTAX USAGE("bhd [file]")#define THISPROG "bhd"void exit(), perror();main(argc, argv) int argc; char **argv;{ char *in_name = "<stdin>"; FILE *in_file = stdin; int c; if (argc > 2) SYNTAX; if (argc == 2 && strcmp(argv[1], "-") != 0) { TRYOPEN(THISPROG, argv[1], "r", in_file); in_name = argv[1]; } if (read_header(in_file) == NULL) { NOTSPS(THISPROG, in_name); } while ((c = getc(in_file)) != EOF) putchar(c); exit(0);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -