Annotation of generator/hdr/snprintf.h, revision 1.1

1.1     ! root        1: #ifndef _PORTABLE_SNPRINTF_H_
        !             2: #define _PORTABLE_SNPRINTF_H_
        !             3: 
        !             4: #define PORTABLE_SNPRINTF_VERSION_MAJOR 2
        !             5: #define PORTABLE_SNPRINTF_VERSION_MINOR 2
        !             6: 
        !             7: #ifdef HAVE_SNPRINTF
        !             8: #include <stdio.h>
        !             9: #else
        !            10: #include <stdarg.h>
        !            11: extern int snprintf(char *, size_t, const char *, /*args*/ ...);
        !            12: extern int vsnprintf(char *, size_t, const char *, va_list);
        !            13: #endif
        !            14: 
        !            15: #if defined(HAVE_SNPRINTF) && defined(PREFER_PORTABLE_SNPRINTF)
        !            16: extern int portable_snprintf(char *str, size_t str_m, const char *fmt, /*args*/ ...);
        !            17: extern int portable_vsnprintf(char *str, size_t str_m, const char *fmt, va_list ap);
        !            18: #define snprintf  portable_snprintf
        !            19: #define vsnprintf portable_vsnprintf
        !            20: #endif
        !            21: 
        !            22: extern int asprintf  (char **ptr, const char *fmt, /*args*/ ...);
        !            23: extern int vasprintf (char **ptr, const char *fmt, va_list ap);
        !            24: extern int asnprintf (char **ptr, size_t str_m, const char *fmt, /*args*/ ...);
        !            25: extern int vasnprintf(char **ptr, size_t str_m, const char *fmt, va_list ap);
        !            26: 
        !            27: #endif

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.