Mercurial > ~mikael > mcabber > hg
comparison mcabber/libjabber/snprintf.c @ 417:c3ae9251c197
Sync libjabber with upstream
Sync with jabberd-1.4.4.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Thu, 01 Sep 2005 23:29:21 +0200 |
parents | ec86d759ed54 |
children |
comparison
equal
deleted
inserted
replaced
416:48e7808c4191 | 417:c3ae9251c197 |
---|---|
49 * project, please see <http://www.apache.org/>. | 49 * project, please see <http://www.apache.org/>. |
50 * | 50 * |
51 * This code is based on, and used with the permission of, the | 51 * This code is based on, and used with the permission of, the |
52 * SIO stdio-replacement strx_* functions by Panos Tsirigotis | 52 * SIO stdio-replacement strx_* functions by Panos Tsirigotis |
53 * <panos@alumni.cs.colorado.edu> for xinetd. | 53 * <panos@alumni.cs.colorado.edu> for xinetd. |
54 */ | |
55 | |
56 /** | |
57 * @file snprintf.c | |
58 * @brief implement snprintf if not present in the libc | |
59 * | |
60 * snprintf is not implemented by all libc implementations, this file implements this | |
61 * function, if it is not already present. You should not call any of the functions | |
62 * in this file directly! | |
54 */ | 63 */ |
55 | 64 |
56 #include <libxode.h> | 65 #include <libxode.h> |
57 | 66 |
58 #if !defined(HAVE_SNPRINTF) || !defined(HAVE_VSNPRINTF) | 67 #if !defined(HAVE_SNPRINTF) || !defined(HAVE_VSNPRINTF) |
240 | 249 |
241 typedef enum { | 250 typedef enum { |
242 NO = 0, YES = 1 | 251 NO = 0, YES = 1 |
243 } boolean_e; | 252 } boolean_e; |
244 | 253 |
245 #define FALSE 0 | 254 #ifndef FALSE |
246 #define TRUE 1 | 255 # define FALSE 0 |
256 #endif | |
257 #ifndef TRUE | |
258 # define TRUE 1 | |
259 #endif | |
247 #define NUL '\0' | 260 #define NUL '\0' |
248 #define INT_NULL ((int *)0) | 261 #define INT_NULL ((int *)0) |
249 #define WIDE_INT long | 262 #define WIDE_INT long |
250 | 263 |
251 typedef WIDE_INT wide_int; | 264 typedef WIDE_INT wide_int; |