🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.general
Article #4452

C help?

#4452
From: settle
Date: Fri, 17 Jan 1986 17:07
19 lines
1372 bytes
I am currently writing a data input sheet in C and I am having trouble with
a library function.  The include file is called "curses.h" and it is a
screen editing package.  There is (or I think that there is) a bug in one of
the commands "printw".  Has anyone out there ever used this package?  If so,
could you write a response to this note with some advice on how to
get around the bug (if it is a bug).  The problem occurs when trying to
print a string.  When used in a loop, the command printw("%-35s %f"); will
result in something like this:

Whatever              675.1
your         45.32
string           5643.3
is                   453.6

I have checked but cannot find any pattern associated with the seemingly
random placement of the floating point number.  Can anyone help? Thanks.

Ken Settle
Technical Details
Message-ID: <27300006@siemens.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!princeton!siemens!settle

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: Notesfiles $Revision: 1.6.2.14 $; site siemens.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!princeton!siemens!settle
From: settle@siemens.UUCP
Newsgroups: net.general
Subject: C help?
Message-ID: <27300006@siemens.UUCP>
Date: Fri, 17-Jan-86 12:07:00 EST
Article-I.D.: siemens.27300006
Posted: Fri Jan 17 12:07:00 1986
Date-Received: Wed, 22-Jan-86 05:14:27 EST
Lines: 19
Nf-ID: #N:siemens:27300006:000:804
Nf-From: siemens!settle    Jan 17 12:07:00 1986