\section{lib/c/printf.c File Reference}
\label{printf_8c}\index{lib/c/printf.c@{lib/c/printf.c}}
printf function 

{\tt \#include $<$stdarg.h$>$}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
int {\bf itoa} (unsigned int value, char $\ast$dst, int pos, int len, int radix, const char $\ast$digits)
\item 
int {\bf vsnprintf} (char $\ast$dst, int len, const char $\ast$fmt, va\_\-list arg)
\item 
char $\ast$ {\bf snprintf} (char $\ast$dst, int len, const char $\ast$fmt,...)
\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item 
const char {\bf hexdigits} [$\,$] = \char`\"{}0123456789ABCDEF\char`\"{}
\item 
const char {\bf lhexdigits} [$\,$] = \char`\"{}0123456789abcdef\char`\"{}
\item 
const char {\bf empty\_\-string} [$\,$] = \char`\"{}(null string)\char`\"{}
\end{CompactItemize}


\subsection{Detailed Description}
printf function 

\begin{Desc}
\item[Author:]Matthew Ahrens $<${\tt mahrens@acm.org}$>$\end{Desc}


Definition in file {\bf printf.c}.

\subsection{Function Documentation}
\index{printf.c@{printf.c}!itoa@{itoa}}
\index{itoa@{itoa}!printf.c@{printf.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int itoa (unsigned int {\em value}, char $\ast$ {\em dst}, int {\em pos}, int {\em len}, int {\em radix}, const char $\ast$ {\em digits})\hspace{0.3cm}{\tt  [static]}}\label{printf_8c_a3}




Definition at line 38 of file printf.c.

Referenced by vsnprintf().\index{printf.c@{printf.c}!snprintf@{snprintf}}
\index{snprintf@{snprintf}!printf.c@{printf.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ snprintf (char $\ast$ {\em dst}, int {\em len}, const char $\ast$ {\em fmt},  {\em ...})}\label{printf_8c_a5}




Definition at line 141 of file printf.c.

References vsnprintf().\index{printf.c@{printf.c}!vsnprintf@{vsnprintf}}
\index{vsnprintf@{vsnprintf}!printf.c@{printf.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int vsnprintf (char $\ast$ {\em dst}, int {\em len}, const char $\ast$ {\em fmt}, va\_\-list {\em arg})}\label{printf_8c_a4}




Definition at line 74 of file printf.c.

References hexdigits, itoa(), and lhexdigits.

Referenced by snprintf().

\subsection{Variable Documentation}
\index{printf.c@{printf.c}!empty_string@{empty\_\-string}}
\index{empty_string@{empty\_\-string}!printf.c@{printf.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const char {\bf empty\_\-string}[$\,$] = \char`\"{}(null string)\char`\"{}\hspace{0.3cm}{\tt  [static]}}\label{printf_8c_a2}




Definition at line 29 of file printf.c.\index{printf.c@{printf.c}!hexdigits@{hexdigits}}
\index{hexdigits@{hexdigits}!printf.c@{printf.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const char {\bf hexdigits}[$\,$] = \char`\"{}0123456789ABCDEF\char`\"{}\hspace{0.3cm}{\tt  [static]}}\label{printf_8c_a0}




Definition at line 27 of file printf.c.

Referenced by vsnprintf().\index{printf.c@{printf.c}!lhexdigits@{lhexdigits}}
\index{lhexdigits@{lhexdigits}!printf.c@{printf.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const char {\bf lhexdigits}[$\,$] = \char`\"{}0123456789abcdef\char`\"{}\hspace{0.3cm}{\tt  [static]}}\label{printf_8c_a1}




Definition at line 28 of file printf.c.

Referenced by vsnprintf().