🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: NET.v7bugs
Article #9

printf

#9
From: ucbvaxcorymark
Date: Sun, 24 Aug 1980 08:27
14 lines
498 bytes
Under certain circumstances, v7 printf prints extra leading zeros,
as in the example below.  Does anyone have a fix for this?

Script started on Fri Aug 22 20:57:20 1980
% cat foo.c
#include <stdio.h>
main()
{
	printf("%1.1d:%02.2d\n", 3, 14);
}
% foo
03:014
% 
script done on Fri Aug 22 20:57:33 1980
Technical Details
Message-ID: <anews.Aucbcory.194>
Path: arc1-ca.pugleaf.net!utzoo!duke!vax135!ucbvax!cory:mark

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!duke!vax135!ucbvax!cory:mark
From: ucbvax!cory:mark
Newsgroups: NET.v7bugs
Subject: printf
Date: Sun, 24 Aug 1980 08:27:03 +0000
Message-ID: <anews.Aucbcory.194>