mark.c
来自「4.8kcelp语音压缩编码程序」· C语言 代码 · 共 61 行
C
61 行
/**************************************************************************** ROUTINE* mark** FUNCTION* * display prompts to indicate processing* (output to standard error)** SYNOPSIS* subroutine mark (type)** formal ** data I/O* name type type function* -------------------------------------------------------------------* type int i 0 - display a 'pump' (rotating bar)* 1 - display a row of dots****************************************************************************** DESCRIPTION** This routine creates either a rotating bar or a row of dots, * depending on what is specified, while code is executing.****************************************************************************** CALLED BY** celp** CALLS******************************************************************************* REFERENCES****************************************************************************/#include <stdio.h>mark(type)int type;{ static int i; static char chr[] = "/-\\|"; if (type) { fprintf(stderr,"%c",'.'); } else { fprintf(stderr,"%c\b",chr[i++]); if (i > 3) i = 0; } fflush(stderr);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?