Commit 3174e395 authored by marko's avatar marko

branches/zip: ut_snprintf(): Fix the function comments.

parent cea9a03a
...@@ -306,12 +306,14 @@ ut_copy_file( ...@@ -306,12 +306,14 @@ ut_copy_file(
FILE* src); /* in: input file to be appended to output */ FILE* src); /* in: input file to be appended to output */
#endif /* !UNIV_HOTBACKUP */ #endif /* !UNIV_HOTBACKUP */
/**************************************************************************
snprintf(). */
#ifdef __WIN__ #ifdef __WIN__
/**************************************************************************
A substitute for snprintf(3), formatted output conversion into
a limited buffer. */
UNIV_INTERN
int int
ut_snprintf( ut_snprintf(
/*========*/
/* out: number of characters that would /* out: number of characters that would
have been printed if the size were have been printed if the size were
unlimited, not including the terminating unlimited, not including the terminating
...@@ -321,7 +323,7 @@ ut_snprintf( ...@@ -321,7 +323,7 @@ ut_snprintf(
const char* fmt, /* in: format */ const char* fmt, /* in: format */
...); /* in: format values */ ...); /* in: format values */
#else #else
#define ut_snprintf snprintf # define ut_snprintf snprintf
#endif /* __WIN__ */ #endif /* __WIN__ */
#ifndef UNIV_NONINL #ifndef UNIV_NONINL
......
...@@ -552,13 +552,15 @@ ut_copy_file( ...@@ -552,13 +552,15 @@ ut_copy_file(
} }
#endif /* !UNIV_HOTBACKUP */ #endif /* !UNIV_HOTBACKUP */
/**************************************************************************
snprintf(). */
#ifdef __WIN__ #ifdef __WIN__
#include <stdarg.h> # include <stdarg.h>
/**************************************************************************
A substitute for snprintf(3), formatted output conversion into
a limited buffer. */
UNIV_INTERN
int int
ut_snprintf( ut_snprintf(
/*========*/
/* out: number of characters that would /* out: number of characters that would
have been printed if the size were have been printed if the size were
unlimited, not including the terminating unlimited, not including the terminating
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment