⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 print.c

📁 用于TM1300/PNX1300系列DSP(主要用于视频处理)的操作系统pSOS。包括全部源码
💻 C
字号:
/* *  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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -