host_lib.c

来自「minimal python variant for small footpri」· C语言 代码 · 共 24 行

C
24
字号
/*  Logging using the PalmOS Host* services.*/#include <PalmOS.h>#include "stdio.h"static HostFILE *logfile = NULL;void host_printf(char *message){        if (logfile == NULL) {                logfile = HostFOpen("palm_intern_strings.log", "w");                if (logfile == NULL){                        printf("problem opening log file\n");                        return;                }        }        HostFPrintF(logfile, message);        HostFPrintF(logfile, "\n");        HostFFlush (logfile);}

⌨️ 快捷键说明

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