[newbie] a rather simple question..

From: Peter d (death_comes_to_all@hotmail.com)
Date: 06/24/02


I stumbled over this in an sprintf line.. %-20.20s, i am only familiar with
%s and %d and so on.. what is the -20.20 for? is it to make a space before
or after it? could i use the same principle in my do_who command to make it
look nicer?

eg. if i want to make these lines aligned like this

Str: 18        Hp:   500/500
Dex: 15        Mana: 500/500

or is there another method i should use to make the hp and mana lines
independent of the previous lines?

/Peter

_________________________________________________________________
MSN Foto är det enklaste sättet att dela eller skaffa papperskopior av dina
foton: http://photos.msn.com/support/worldwide.aspx

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT