setup.c

来自「IP网络语音通讯软件源代码. 不可多得的语音源代码」· C语言 代码 · 共 44 行

C
44
字号
/***********************************************************************
*
*	SETUP Version 55 for Real Time Operation at multiple bit rates
*
*************************************************************************
*
*	Set processing options
*/

#include "lpcdefs.h"
#include "config.ch"
#include "common.h"
#include "contrl.ch"

setup(nargs, args)
int nargs;
char *args[];
{
char fname[80], fname2[80], line[80];
/* 
	Call to getcl() gets name of input and output file and message level.
Real time doesn't need messages about performance, etc, so those will be 
eliminated.
*/
if (nargs < 3) {
  printf("Usage: %s inputfile outputfile\n", args[0]);
  exit(1);
}
else {
  fdi = fopen(args[1], "rb");
  if(fdi==NULL) {
    printf("Problem opening [3] %s ... program exiting\n",args[1]);
    exit(1);
  }


  fdo = fopen(args[2], "w");
  if(fdo == NULL)	{
    printf("Problem opening [4] ... program exiting %s\n",args[2]);
    exit(1);
  }
}
}

⌨️ 快捷键说明

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