diff options
author | jthorn <jthorn@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2006-01-05 14:38:56 +0000 |
---|---|---|
committer | jthorn <jthorn@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2006-01-05 14:38:56 +0000 |
commit | 3724426f4b0bb8305bfaae8264e1d9b0f7cf0fa6 (patch) | |
tree | ca46f531f1645fd656f7fe581dbb5f50af62a468 | |
parent | 18eac1e0b4a6eddec9718b7b190217caa3d25329 (diff) |
fix Util_vsnprintf() discussion to be about Util_vsnprintf()
-- previously it was cut-n-pasted from other functions and didn't
actually mention Util_vsnprintf()
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4228 17b73243-c579-4c4c-a9d2-2d5706c11dac
-rw-r--r-- | doc/ReferenceManual/UtilReference.tex | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/doc/ReferenceManual/UtilReference.tex b/doc/ReferenceManual/UtilReference.tex index 1794f896..1fa75a56 100644 --- a/doc/ReferenceManual/UtilReference.tex +++ b/doc/ReferenceManual/UtilReference.tex @@ -477,20 +477,31 @@ Safely format data into a caller-supplied buffer. \begin{Synopsis}{C} \begin{verbatim} #include "util_String.h" -int count = Util_snprintf(char* buffer, size_t size, const char* format,- -va_list arg) +int count = Util_vsnprintf(char* buffer, size_t size, const char* format, + va_list arg) \end{verbatim} \end{Synopsis} \end{SynopsisSection} \begin{Discussion} -This function is identical to Util\_snprintf, with the exception of accepting its data arguements in the form of a {\tt va\_list}, instead of in the from of a variable length parameter list. See the entry on {\tt snprintf}- +This function is identical to \verb|Util_snprintf|, except that it +takes its data arguements in the form of a \verb|va_list| ``cookie'' +(as defined by \verb|<stdarg.h>|, which is already included by +\verb|"util_String.h"|), instead of in the from of a variable length +argument list. \end{Discussion} \begin{SeeAlsoSection} \begin{SeeAlso2}{Util\_snprintf}{Util-snprintf} -Standard C library function which this function tries to clone. +Similar function which takes a variable length argument list. \end{SeeAlso2} +\begin{SeeAlso}{vsnprintf()} +Standard C library function which this function tries to clone. +\end{SeeAlso} +\begin{SeeAlso}{vsprintf()} +Unsafe and dangerous C library function similar to \verb|vsnprintf()|, +which doesn't check the buffer length. +\end{SeeAlso} \end{SeeAlsoSection} \end{FunctionDescription} |