Plan 9 from Bell Labs’s /usr/web/sources/patch/maybe/acidbfmt/readme

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


acid \B format prints 1 garbage character after fmt
e.g.:
acid: 0xe\B
0b00000000000000000000000000001110p

fix by using %b format (which itself needed
a fix to print 0b as prefix if FmtSharp is set).

a clean comple requires this addition to libc.h:

/n/sources/plan9//sys/include/libc.h:177,184 - libc.h:180,189
  
  #pragma	varargck	type	"lld"	vlong
  #pragma	varargck	type	"llx"	vlong
+ #pragma	varargck	type	"llb"	vlong
  #pragma	varargck	type	"lld"	uvlong
  #pragma	varargck	type	"llx"	uvlong
+ #pragma	varargck	type	"llb"	uvlong
  #pragma	varargck	type	"ld"	long
  #pragma	varargck	type	"lx"	long
  #pragma	varargck	type	"lb"	long

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.