On Tue, 11 Feb 1997, Mike Sulmicki wrote: > [95 Dwarven Knight] man sprintf. sprintf (buf, "%-10s", racename) %-10s means that this argument will be padded so it takes up at least 10 spaces, by adding spaces on the RIGHT side. %10s however ,means to pad on the right side. This is useful for numbers ,e.g. %2d will show " 2" or "22". %02d (leading 0) means to use 0s rather than spaces. ============================================================================== Erwin Andreasen Viby J, Denmark Computer Science Student at Aarhus Business erwin@pip.dknet.dk <URL:http://pip.dknet.dk/~pip1773/> College ============================================================================== +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | | Or send 'info circle' to majordomo@cspo.queensu.ca | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST