📄 dmx_error.c
字号:
/*$Id: dmx_error.c,v 1.2 2004/01/25 22:36:52 rasc Exp $ DVBSNOOP a dvb sniffer and mpeg2 stream analyzer tool http://dvbsnoop.sourceforge.net/ (c) 2001-2004 Rainer.Scherg@gmx.de (rasc) -- simple error output for DMX & file I/O$Log: dmx_error.c,v $Revision 1.2 2004/01/25 22:36:52 rascminor changes & enhancmentsRevision 1.1 2004/01/02 00:00:37 rascerror output for buffer overflow*/#include <stdio.h>#include <stdlib.h>#include <errno.h>int IO_error (char *str){ char *s; int err; s = (str) ? str : ""; err = errno; switch (err) { case EOVERFLOW: fprintf (stderr, "Error(%d): %s: Buffer overflow, stream bandwidth to high\n", err,s); break; default: fprintf (stderr,"Error(%d): ",err); perror(s); break; } return err;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -