/usr/include/crystalspace-2.0/csutil/snprintf.h is in libcrystalspace-dev 2.0+dfsg-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | #ifndef __CS_SNPRINTF_H__
#define __CS_SNPRINTF_H__
#include <stdarg.h>
#include "csextern.h"
/**\file
* Implementations of [v][a]snprintf()
*/
/**\addtogroup util
* @{
*/
/**
* Portable implementation of snprintf()
* \sa \ref FormatterNotes
*/
extern CS_CRYSTALSPACE_EXPORT int cs_snprintf (char* buf, size_t bufSize,
const char* format, /*args*/ ...)
CS_GNUC_PRINTF (3, 4);
/**
* Portable implementation of vsnprintf()
* \sa \ref FormatterNotes
*/
extern CS_CRYSTALSPACE_EXPORT int cs_vsnprintf (char *, size_t, const char *,
va_list)
CS_GNUC_PRINTF (3, 0);
/**
* Portable implementation of asprintf().
* \remark Like asprintf(), the string was allocated with cs_malloc() and needs to
* be cs_freed with cs_free().
* \sa \ref FormatterNotes
*/
extern CS_CRYSTALSPACE_EXPORT int cs_asprintf (char **, const char *, ...)
CS_GNUC_PRINTF (2, 3);
/**
* \copydoc cs_asprintf
* \brief Portable implementation of vasprintf().
* \sa \ref FormatterNotes
*/
extern CS_CRYSTALSPACE_EXPORT int cs_vasprintf (char **, const char *, va_list)
CS_GNUC_PRINTF (2, 0);
/** @} */
#endif // __CS_SNPRINTF_H__
|