support.c

来自「用于嵌入式Linux系统的标准C的库函数」· C语言 代码 · 共 25 行

C
25
字号
/* * support.c -- minimal support functions. This is to keep the exit code * 	generic enough that pattern matching from expect should be easier. */#if defined (unix)#define PRINT printf		/* so we can test on a native system */#else#define PRINT iprintf		/* this is only in newlib */#endifintfail (str)char *str;{     PRINT ("FAIL: %s\n", str);}intpass (str)char *str;{     PRINT ("PASS: %s\n", str);}

⌨️ 快捷键说明

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