]> git.ipfire.org Git - thirdparty/bird.git/commit
IP address formatting now uses the same rules as formatting of strings
authorMartin Mares <mj@ucw.cz>
Sun, 19 Aug 2001 11:11:44 +0000 (11:11 +0000)
committerMartin Mares <mj@ucw.cz>
Sun, 19 Aug 2001 11:11:44 +0000 (11:11 +0000)
commit30b773041c37d10649a16d5f28af00a25871aac7
tree4cf586625907093aae7179e7b3b029f3a2d8839d
parent16319aebd30da5161bed95d72094250228a7f61c
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.

Therefore |%I| generates unpadded format, |%1I| full size flush-right,
and |%-1I| full size flush-left format.
lib/printf.c