/[cvs]/eggdrop1.8/src/compat/snprintf.h
ViewVC logotype

Contents of /eggdrop1.8/src/compat/snprintf.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1.1.1 - (show annotations) (download) (as text) (vendor branch)
Mon Jul 26 21:11:06 2010 UTC (9 years, 1 month ago) by simple
Branch: eggheads, MAIN
CVS Tags: v1, HEAD
Branch point for: gettext
Changes since 1.1: +0 -0 lines
File MIME type: text/x-csrc
Imported Eggdrop 1.6.20

1 /*
2 * snprintf.h
3 * header file for snprintf.c
4 *
5 * $Id: snprintf.h,v 1.22 2010/01/03 13:27:40 pseudo Exp $
6 */
7 /*
8 * Copyright (C) 2000 - 2010 Eggheads Development Team
9 *
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * as published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 */
24
25 #ifndef _EGG_COMPAT_SNPRINTF_H_
26 #define _EGG_COMPAT_SNPRINTF_H_
27
28 #include "src/main.h"
29 #include <stdio.h>
30
31 /* Check for broken snprintf versions */
32 #ifdef BROKEN_SNPRINTF
33 # ifdef HAVE_VSNPRINTF
34 # undef HAVE_VSNPRINTF
35 # endif
36 # ifdef HAVE_SNPRINTF
37 # undef HAVE_SNPRINTF
38 # endif
39 #endif
40
41 /* Use the system libraries version of vsnprintf() if available. Otherwise
42 * use our own.
43 */
44 #ifndef HAVE_VSNPRINTF
45 int egg_vsnprintf(char *str, size_t count, const char *fmt, va_list ap);
46 #else
47 # define egg_vsnprintf vsnprintf
48 #endif
49
50 /* Use the system libraries version of snprintf() if available. Otherwise
51 * use our own.
52 */
53 #ifndef HAVE_SNPRINTF
54 # ifdef __STDC__
55 int egg_snprintf(char *str, size_t count, const char *fmt, ...);
56 # else
57 int egg_snprintf();
58 # endif
59 #else
60 # define egg_snprintf snprintf
61 #endif
62
63 #endif /* !_EGG_COMPAT_SNPRINTF_H_ */

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23