wireshark/snprintf.h
Guy Harris d0b809aa74 Squelch a number of "-Wall" errors by:
1) renaming "snprintf.h" to "snprintf-imp.h" (it contains stuff
	   used by the "snprintf()" *implementation*, but not stuff it
	   *exports*);

	2) creating a new "snprintf.h" to declare "vsnprintf()" and
	   "snprintf()";

	3) removing an unused variable;

	4) fixing a call to "add_item_to_tree()" to handle the
	   possibility of "ntohl()" returning a "long" rather than an
	   "int".

svn path=/trunk/; revision=47
1998-10-13 07:03:37 +00:00

10 lines
325 B
C

extern int vsnprintf(char *string, size_t length, const char * format,
va_list args);
#if defined(HAVE_STDARG_H) && defined(__STDC__) && __STDC__
extern int snprintf(char *string, size_t length, const char * format, ...);
#else
extern int snprintf(char *string, size_t length, const char * format,
int va_alist);
#endif