Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/redirectprintf_8c.html
author Dominic Pinkman <dominic.pinkman@nokia.com>
Fri, 13 Aug 2010 16:47:46 +0100
changeset 14 578be2adaf3e
parent 6 43e37759235e
permissions -rw-r--r--
Week 32 contribution of PDK documentation content. See release notes for details. Fixes bug Bug 3582

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>TB9.2 Example Applications: examples/PIPS/redirectprintf/src/redirectprintf.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.2 -->
<div class="contents">
<h1>examples/PIPS/redirectprintf/src/redirectprintf.c File Reference</h1>
<p><a href="redirectprintf_8c_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="redirectprintf_8c.html#a6e8d44137e67e28ef0de048f599289f7">RedirectPrintf</a> (char *aMessagePtr,...)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="redirectprintf_8c.html#a840291bc02cba5474a4cb46a9b9566fe">main</a> (void)</td></tr>
<tr><td colspan="2"><h2>Variables</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa7b8e7925b8f3f4a2f9c2e7a2cd502b7"></a><!-- doxytag: member="redirectprintf.c::fpDebug" ref="aa7b8e7925b8f3f4a2f9c2e7a2cd502b7" args="" -->
FILE *&nbsp;</td><td class="memItemRight" valign="bottom"><b>fpDebug</b> = NULL</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a319f75cc36c146b697d46ae5a6994610"></a><!-- doxytag: member="redirectprintf.c::logFileName" ref="a319f75cc36c146b697d46ae5a6994610" args="" -->
char *&nbsp;</td><td class="memItemRight" valign="bottom"><b>logFileName</b> = &quot;c:\\logs\\trace.txt&quot;</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6fc1bffa6d1b917a452cd2be48baa424"></a><!-- doxytag: member="redirectprintf.c::anotherLogFile" ref="a6fc1bffa6d1b917a452cd2be48baa424" args="" -->
const char *&nbsp;</td><td class="memItemRight" valign="bottom"><b>anotherLogFile</b> = &quot;c:\\logs\\newlog.txt&quot;</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Contained the implementation of how to redirect stdout into a file. </p>

<p>Definition in file <a class="el" href="redirectprintf_8c_source.html">redirectprintf.c</a>.</p>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="a6e8d44137e67e28ef0de048f599289f7"></a><!-- doxytag: member="redirectprintf.c::RedirectPrintf" ref="a6e8d44137e67e28ef0de048f599289f7" args="(char *aMessagePtr,...)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int RedirectPrintf </td>
          <td>(</td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>aMessagePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&nbsp;</td>
          <td class="paramname"> <em>...</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Use to redirect the printf statements </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>aMessagePtr</em>&nbsp;</td><td>pointer to the message </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>...</em>&nbsp;</td><td>Variable parameters like printf </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="redirectprintf_8c_source.html#l00035">35</a> of file <a class="el" href="redirectprintf_8c_source.html">redirectprintf.c</a>.</p>

</div>
</div>
<a class="anchor" id="a840291bc02cba5474a4cb46a9b9566fe"></a><!-- doxytag: member="redirectprintf.c::main" ref="a840291bc02cba5474a4cb46a9b9566fe" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int main </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>application entry point </p>

<p>Definition at line <a class="el" href="redirectprintf_8c_source.html#l00056">56</a> of file <a class="el" href="redirectprintf_8c_source.html">redirectprintf.c</a>.</p>

</div>
</div>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
</body>
</html>