print.c
来自「用于TM1300/PNX1300系列DSP(主要用于视频处理)的操作系统pSOS」· C语言 代码 · 共 76 行
C
76 行
/* * COPYRIGHT (c) 1995,2000 TriMedia Technologies Inc. * * +-----------------------------------------------------------------+ * | THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY ONLY BE USED | * | AND COPIED IN ACCORDANCE WITH THE TERMS AND CONDITIONS OF SUCH | * | A LICENSE AND WITH THE INCLUSION OF THE THIS COPY RIGHT NOTICE. | * | THIS SOFTWARE OR ANY OTHER COPIES OF THIS SOFTWARE MAY NOT BE | * | PROVIDED OR OTHERWISE MADE AVAILABLE TO ANY OTHER PERSON. THE | * | OWNERSHIP AND TITLE OF THIS SOFTWARE IS NOT TRANSFERRED. | * +-----------------------------------------------------------------+ * * Module name : print.c 1.7 * * Module type : IMPLEMENTATION * * Title : * * Author : Juul van der Spek * * Last update : 17:33:33 - 00/06/20 * * Reviewed : * * Revision history : * * Description : * */#include <stdarg.h>#ifdef __TCS__#include <tmlib/AppModel.h>#else#include <AppModel.h>#endif/*---------------------------------------------------------------------*//* General Definitions *//*---------------------------------------------------------------------*/#define UCHAR unsigned char#define USHORT unsigned short#define ULONG unsigned long/***********************************************************************//* Print: Format output and send it to the console *//* *//* INPUTS: format = ptr to format string *//* additional inputs as specified by *format. *//* *//* RETURNS: # of characters output *//* NOTE: Format strings are explained in the header at the *//* top of this module. *//* *//***********************************************************************/ULONG Print(char *format, ...){ ULONG result; AppModel_AppId self; va_list arg_pt; AppModel_suspend_scheduling(); self= AppModel_switch(AppModel_root); va_start(arg_pt, format); result= vprintf(format, arg_pt); AppModel_switch(self); AppModel_resume_scheduling(); return result;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?