<divclass="center"><iframescrolling="no"frameborder="0"src="../../d5/dc5/test__min__printf_8c__incl.svg"width="264"height="202"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
<trclass="memdesc:ae66f6b31b5ad750f1fe042a706a4e3d4"><tdclass="mdescLeft"> </td><tdclass="mdescRight">for <code>min_printf</code> function for <code>printf</code> function <ahref="../../d5/d5c/test__min__printf_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4">More...</a><br/></td></tr>
<divclass="textblock"><p>File used to test min_printf function. </p>
<p>The test will be executed by comparing the result of both <code>min_printf</code> and <code>printf</code> functions </p><dlclass="section author"><dt>Author</dt><dd><ahref="https://github.com/Jaskarn7"target="_blank">Jaskarn7</a></dd></dl>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="../../d9/deb/min__printf_8h.html"title="Implementation of a function similar to printf">min_printf.h</a></dd></dl>
<p>for <code>min_printf</code> function for <code>printf</code> function </p>
<p>Main function</p>
<p>This function is used to test <code>min_printf</code> function. The numbers and string used for the test is generated randomly (The user can also specify their own value for tests) First integers were tested then floats and at last strings After running the program the user will see three pair of lines with each pair followed by an empty line In each pair of lines, the first line will be printed by <code>min_printf</code> function and next line by the actual <code>printf</code> function In each line user will see number or string covered with two colons, they are used to check from where the printing was started and where it ends </p><dlclass="section return"><dt>Returns</dt><dd>0 on exit </dd></dl>
<divclass="line"><aid="l00026"name="l00026"></a><spanclass="lineno"> 26</span><spanclass="comment">// print strings using `printf` and `min_printf`</span></div>
<divclass="line"><aid="l00030"name="l00030"></a><spanclass="lineno"> 30</span> printf(<spanclass="stringliteral">"\n"</span>); <spanclass="comment">/// Printing an empty new line</span></div>
<divclass="line"><aid="l00032"name="l00032"></a><spanclass="lineno"> 32</span><spanclass="comment">// print floats or doubles using `printf` and `min_printf`</span></div>
<divclass="ttc"id="amin__printf_8h_html_a33e08c05f8c656a0fee465c2e8d2ecf9"><divclass="ttname"><ahref="../../d9/deb/min__printf_8h.html#a33e08c05f8c656a0fee465c2e8d2ecf9">min_printf</a></div><divclass="ttdeci">void min_printf(char *fmt,...)</div><divclass="ttdoc">min_printf is the function same as printf</div><divclass="ttdef"><b>Definition:</b> min_printf.h:295</div></div>
<divclass="center"><iframescrolling="no"frameborder="0"src="../../d5/d5c/test__min__printf_8c_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg"width="536"height="190"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
<liclass="footer">Generated by <ahref="https://www.doxygen.org/index.html"><imgclass="footer"src="../../doxygen.svg"width="104"height="31"alt="doxygen"/></a> 1.9.2 </li>