1<html lang="en"> 2<head> 3<title>diprintf - Untitled</title> 4<meta http-equiv="Content-Type" content="text/html"> 5<meta name="description" content="Untitled"> 6<meta name="generator" content="makeinfo 4.13"> 7<link title="Top" rel="start" href="index.html#Top"> 8<link rel="up" href="Stdio.html#Stdio" title="Stdio"> 9<link rel="prev" href="clearerr.html#clearerr" title="clearerr"> 10<link rel="next" href="dprintf.html#dprintf" title="dprintf"> 11<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> 12<meta http-equiv="Content-Style-Type" content="text/css"> 13<style type="text/css"><!-- 14 pre.display { font-family:inherit } 15 pre.format { font-family:inherit } 16 pre.smalldisplay { font-family:inherit; font-size:smaller } 17 pre.smallformat { font-family:inherit; font-size:smaller } 18 pre.smallexample { font-size:smaller } 19 pre.smalllisp { font-size:smaller } 20 span.sc { font-variant:small-caps } 21 span.roman { font-family:serif; font-weight:normal; } 22 span.sansserif { font-family:sans-serif; font-weight:normal; } 23--></style> 24<link rel="stylesheet" type="text/css" href="../cs.css"> 25</head> 26<body> 27<div class="node"> 28<a name="diprintf"></a> 29<p> 30Next: <a rel="next" accesskey="n" href="dprintf.html#dprintf">dprintf</a>, 31Previous: <a rel="previous" accesskey="p" href="clearerr.html#clearerr">clearerr</a>, 32Up: <a rel="up" accesskey="u" href="Stdio.html#Stdio">Stdio</a> 33<hr> 34</div> 35 36<h3 class="section">4.2 <code>diprintf</code>, <code>vdiprintf</code>—print to a file descriptor (integer only)</h3> 37 38<p><a name="index-diprintf-146"></a><a name="index-g_t_005fdiprintf_005fr-147"></a><a name="index-vdiprintf-148"></a><a name="index-g_t_005fvdiprintf_005fr-149"></a><strong>Synopsis</strong> 39<pre class="example"> #include <stdio.h> 40 #include <stdarg.h> 41 int diprintf(int <var>fd</var>, const char *<var>format</var>, ...); 42 int vdiprintf(int <var>fd</var>, const char *<var>format</var>, va_list <var>ap</var>); 43 int _diprintf_r(struct _reent *<var>ptr</var>, int <var>fd</var>, 44 const char *<var>format</var>, ...); 45 int _vdiprintf_r(struct _reent *<var>ptr</var>, int <var>fd</var>, 46 const char *<var>format</var>, va_list <var>ap</var>); 47 48</pre> 49 <p><strong>Description</strong><br> 50<code>diprintf</code> and <code>vdiprintf</code> are similar to <code>dprintf</code> and <code>vdprintf</code>, 51except that only integer format specifiers are processed. 52 53 <p>The functions <code>_diprintf_r</code> and <code>_vdiprintf_r</code> are simply 54reentrant versions of the functions above. 55 56 <p><br> 57<strong>Returns</strong><br> 58Similar to <code>dprintf</code> and <code>vdprintf</code>. 59 60 <p><br> 61<strong>Portability</strong><br> 62This set of functions is an integer-only extension, and is not portable. 63 64 <p>Supporting OS subroutines required: <code>sbrk</code>, <code>write</code>. 65 66 <p><br> 67 68 </body></html> 69 70