Deleted Added
full compact
snprintf.c (55682) snprintf.c (57422)
1/*
1/*
2 * Copyright (c) 1995-1997, 1999 Kungliga Tekniska H�gskolan
2 * Copyright (c) 1995-2000 Kungliga Tekniska H�gskolan
3 * (Royal Institute of Technology, Stockholm, Sweden).
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 *
10 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 */
33
34#ifdef HAVE_CONFIG_H
35#include <config.h>
3 * (Royal Institute of Technology, Stockholm, Sweden).
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 *
10 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 */
33
34#ifdef HAVE_CONFIG_H
35#include <config.h>
36RCSID("$Id: snprintf.c,v 1.24 1999/12/02 16:58:52 joda Exp $");
36RCSID("$Id: snprintf.c,v 1.25 2000/02/16 01:38:52 assar Exp $");
37#endif
38#include <stdio.h>
39#include <stdarg.h>
40#include <stdlib.h>
41#include <string.h>
42#include <ctype.h>
43#include <roken.h>
44

--- 215 unchanged lines hidden (view full) ---

260/*
261 * This can't be made into a function...
262 */
263
264#define PARSE_INT_FORMAT(res, arg, unsig) \
265if (long_flag) \
266 res = (unsig long)va_arg(arg, unsig long); \
267else if (short_flag) \
37#endif
38#include <stdio.h>
39#include <stdarg.h>
40#include <stdlib.h>
41#include <string.h>
42#include <ctype.h>
43#include <roken.h>
44

--- 215 unchanged lines hidden (view full) ---

260/*
261 * This can't be made into a function...
262 */
263
264#define PARSE_INT_FORMAT(res, arg, unsig) \
265if (long_flag) \
266 res = (unsig long)va_arg(arg, unsig long); \
267else if (short_flag) \
268 res = (unsig short)va_arg(arg, unsig short); \
268 res = (unsig short)va_arg(arg, unsig int); \
269else \
270 res = (unsig int)va_arg(arg, unsig int)
271
272/*
273 * zyxprintf - return 0 or -1
274 */
275
276static int

--- 343 unchanged lines hidden ---
269else \
270 res = (unsig int)va_arg(arg, unsig int)
271
272/*
273 * zyxprintf - return 0 or -1
274 */
275
276static int

--- 343 unchanged lines hidden ---