~ubuntu-branches/ubuntu/maverick/bind9/maverick

« back to all changes in this revision

Viewing changes to lib/isc/include/isc/print.h

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2005-04-19 10:21:58 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050419102158-kp20cp1bqf4ivpzy
Tags: 1:9.3.1-2ubuntu1
resync with debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
3
 
 * Copyright (C) 1999-2001  Internet Software Consortium.
 
3
 * Copyright (C) 1999-2001, 2003  Internet Software Consortium.
4
4
 *
5
5
 * Permission to use, copy, modify, and distribute this software for any
6
6
 * purpose with or without fee is hereby granted, provided that the above
15
15
 * PERFORMANCE OF THIS SOFTWARE.
16
16
 */
17
17
 
18
 
/* $Id: print.h,v 1.17.2.1 2004/03/09 06:11:59 marka Exp $ */
 
18
/* $Id: print.h,v 1.17.188.2 2004/03/06 08:14:46 marka Exp $ */
19
19
 
20
20
#ifndef ISC_PRINT_H
21
21
#define ISC_PRINT_H 1
38
38
#define ISC_PLATFORM_NEEDVSNPRINTF
39
39
#endif
40
40
 
 
41
#if !defined(ISC_PLATFORM_NEEDSPRINTF) && defined(ISC__PRINT_SOURCE)
 
42
#define ISC_PLATFORM_NEEDSPRINTF
 
43
#endif
 
44
 
41
45
/***
42
46
 *** Macros
43
47
 ***/
50
54
#ifdef ISC_PLATFORM_NEEDVSNPRINTF
51
55
#include <stdarg.h>
52
56
#include <stddef.h>
 
57
#endif
53
58
 
54
59
ISC_LANG_BEGINDECLS
55
60
 
 
61
#ifdef ISC_PLATFORM_NEEDVSNPRINTF
56
62
int
57
63
isc_print_vsnprintf(char *str, size_t size, const char *format, va_list ap)
58
64
     ISC_FORMAT_PRINTF(3, 0);
62
68
isc_print_snprintf(char *str, size_t size, const char *format, ...)
63
69
     ISC_FORMAT_PRINTF(3, 4);
64
70
#define snprintf isc_print_snprintf
 
71
#endif /* ISC_PLATFORM_NEEDVSNPRINTF */
 
72
 
 
73
#ifdef ISC_PLATFORM_NEEDSPRINTF
 
74
int
 
75
isc_print_sprintf(char *str, const char *format, ...) ISC_FORMAT_PRINTF(2, 3);
 
76
#define sprintf isc_print_sprintf
 
77
#endif
65
78
 
66
79
ISC_LANG_ENDDECLS
67
 
#endif /* ISC_PLATFORM_NEEDVSNPRINTF */
68
80
 
69
81
#endif /* ISC_PRINT_H */