common.c

来自「Fax and soft modem source code. - Fast V」· C语言 代码 · 共 27 行

C
27
字号
/* Modem for MIPS   AJF	  January 1995
   Common routines */

#include <stdio.h>

#include "modem.h"

static void writemsg(char*, char*, word, word, word);


global void giveup(char *msg, word p1, word p2, word p3)
  { writemsg("Error", msg, p1, p2, p3);
    exit(1);
  }

global void infomsg(char *msg, word p1, word p2, word p3)
  { writemsg("Info", msg, p1, p2, p3);
  }

static void writemsg(char *typ, char *msg, word p1, word p2, word p3)
  { fprintf(stderr, "*** %s: ", typ);
    fprintf(stderr, msg, p1, p2, p3);
    putc('\r', stderr); /* in case we're in raw mode */
    putc('\n', stderr);
  }

⌨️ 快捷键说明

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