Statistics
| Branch: | Revision:

iof-bird-daemon / lib / printf.c @ 0e6eef62

History | View | Annotate | Download (8.04 KB)

# Date Author Comment
30b77304 08/19/2001 11:11 AM Martin Mares

IP address formatting now uses the same rules as formatting of strings
with two exceptions:

o  Any non-zero field width is automatically replaced by standard
IP address width. This hides dependences on IPv4/IPv6.
o %#I generates hexadecimal form of the address....
7722938d 06/04/2000 06:34 PM Martin Mares

Added library progdocs.

53943a00 05/02/2000 04:10 PM Martin Mares

Defined format specifier `%M' which behaves as `%m', but takes the
error code as an argument.

Use it in socket hooks where we really shouldn't rely on errno containing
the right value or even existing.

221135d6 03/31/2000 11:30 PM Martin Mares

Include "lib/string.h" instead of <string.h>. It should give us bzero()
and other non-portable functions on all systems.

4254dc45 11/21/1998 10:25 AM Martin Mares

Killed bug in processing of 'h' prefix. Patch taken from linux-2.1.129.

53a416d3 11/16/1998 09:40 PM Martin Mares

Implemented snprintf and similar functions. It took a lot of thinking,
but the modifications were relatively simple and straightforward.

d997534f 06/17/1998 02:34 PM Martin Mares

Oops, forgot '%m'...

ecacdfa4 06/17/1998 02:31 PM Martin Mares

Added local version of sprintf (bsprintf and bvsprintf) offering few new
format strings:

%I    IP address
%#I IP address in hexadecimal
%1I IP address padded to full length
%m strerror(errno)