wireshark/snprintf.h
Gilbert Ramirez c24adacff7 <sys/types.h> still needs to be #included to get size_t, as the comment
which was not deleted makes clear.

svn path=/trunk/; revision=6288
2002-09-12 21:26:51 +00:00

30 lines
606 B
C

/*
* $Id: snprintf.h,v 1.9 2002/09/12 21:26:51 gram Exp $
*/
#ifndef __ETHEREAL_SNPRINTF_H__
#define __ETHEREAL_SNPRINTF_H__
#if defined(HAVE_STDARG_H)
# include <stdarg.h>
#else
# include <varargs.h>
#endif
/* for size_t */
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
extern int vsnprintf(char *string, size_t length, const char * format,
va_list args);
#if __GNUC__ >= 2
extern int snprintf(char *string, size_t length, const char * format, ...)
__attribute__((format (printf, 3, 4)));
#else
extern int snprintf(char *string, size_t length, const char * format, ...);
#endif
#endif