1 /* Copyright (C) 2005, 2007 Shaun Jackman
2 * Permission to use, copy, modify, and distribute this software
3 * is freely granted, provided that this notice is preserved.
8 <<diprintf>>, <<vdiprintf>>---print to a file descriptor (integer only)
22 int diprintf(int <[fd]>, const char *<[format]>, ...);
23 int vdiprintf(int <[fd]>, const char *<[format]>, va_list <[ap]>);
24 int _diprintf_r(struct _reent *<[ptr]>, int <[fd]>,
25 const char *<[format]>, ...);
26 int _vdiprintf_r(struct _reent *<[ptr]>, int <[fd]>,
27 const char *<[format]>, va_list <[ap]>);
30 <<diprintf>> and <<vdiprintf>> are similar to <<dprintf>> and <<vdprintf>>,
31 except that only integer format specifiers are processed.
33 The functions <<_diprintf_r>> and <<_vdiprintf_r>> are simply
34 reentrant versions of the functions above.
37 Similar to <<dprintf>> and <<vdprintf>>.
40 This set of functions is an integer-only extension, and is not portable.
42 Supporting OS subroutines required: <<sbrk>>, <<write>>.
52 _diprintf_r (struct _reent
*ptr
,
54 const char *format
, ...)
59 va_start (ap
, format
);
60 n
= _vdiprintf_r (ptr
, fd
, format
, ap
);
69 const char *format
, ...)
74 va_start (ap
, format
);
75 n
= _vdiprintf_r (_REENT
, fd
, format
, ap
);
80 #endif /* ! _REENT_ONLY */