prn_core.c
来自「澳洲人写的Cortex,包括uC_IP协议栈」· C语言 代码 · 共 56 行
C
56 行
<HTML><HEAD><TITLE>/home/asysweb/public_html/cortex/excore/src/prn_core.c</TITLE></HEAD><BODY><pre><font color="#6920ac">/*************************************************************************/</font><font color="#6920ac">/* */</font><font color="#6920ac">/* Copyright (c) 1997-1999 Australian Real Time Embedded Systems */</font><font color="#6920ac">/* */</font><font color="#6920ac">/* PROPRIETARY RIGHTS of Australian Real Time Embedded Systems */</font><font color="#6920ac">/* are involved in the subject matter of this material. All reproduction,*/</font><font color="#6920ac">/* manufacturing, use, and sales rights pertaining to this subject matter*/</font><font color="#6920ac">/* are governed by the license agreement. The recipient of this software */</font><font color="#6920ac">/* implicitly accepts the terms of the license. */</font><font color="#6920ac">/* */</font><font color="#6920ac">/*************************************************************************/</font><b><font color='DarkGreen'>#include</font></b> <a href="cortex.h.FIND-INC"><font color="blue">"cortex.h"</font></a><b><font color='DarkGreen'>#include</font></b> <a href="env_defs.h.FIND-INC"><font color="blue">"env_defs.h"</font></a><b><font color='DarkGreen'>#include</font></b> <a href="prn_defs.h.FIND-INC"><font color="blue">"prn_defs.h"</font></a><b><font color='DarkGreen'>#include</font></b> <a href="sdr_defs.h.FIND-INC"><font color="blue">"sdr_defs.h"</font></a><b><font color='DarkGreen'>#include</font></b> <a href="plt_defs.h.FIND-INC"><font color="blue">"plt_defs.h"</font></a><font size="+1"><i>crtx_Int_t</i> <b><font color="azure1"><a name="printf">printf</a></font></b>(<i>crtx_Char_t</i> *pFmt_a, ...){</font> <i>va_list</i> Args; <i>crtx_Int_t</i> n; <a href="CRTX_ASSERT.FIND-DEF">CRTX_ASSERT</a>(pFmt_a) <a href="va_start.FIND-FUNC">va_start</a>(Args, pFmt_a); n = <a href="frmt_Vformat.FIND-FUNC">frmt_Vformat</a>(<a href="ENVI_FRMT_PUTCHAR.FIND-DEF">ENVI_FRMT_PUTCHAR</a>, <a href="SYST_STDOUT.FIND-DEF">SYST_STDOUT</a>, pFmt_a, Args); <a href="va_end.FIND-FUNC">va_end</a>(Args); <b>return</b>(n);}<font size="+1"><i>crtx_Int_t</i> <b><font color="azure1"><a name="sprintf">sprintf</a></font></b>(<i>crtx_Char_t</i> *pStr_a, <i>crtx_Char_t</i> *pFmt_a, ...){</font> <i>va_list</i> Args; <i>crtx_Int_t</i> n; <a href="CRTX_ASSERT.FIND-DEF">CRTX_ASSERT</a>(pStr_a) <a href="CRTX_ASSERT.FIND-DEF">CRTX_ASSERT</a>(pFmt_a) <a href="va_start.FIND-FUNC">va_start</a>(Args, pFmt_a); n = <a href="frmt_SVformat.FIND-FUNC">frmt_SVformat</a>(pStr_a, pFmt_a, Args); <a href="va_end.FIND-FUNC">va_end</a>(Args); <b>return</b>(n);}</pre></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?