Um, I think it has something to do with the size of the int. Like say you want to display a long int it would be %ld so %6d might be 6 digits or something....... Or represent a short int. Del wrote: > > Julian Buckley wrote: > > > > > > 1162 sprintf(buf1, "%6d", mob_index[SHOP_KEEPER(shop_nr)].virtual); > > > > > > > > > > Is this a typo? or does your code actually have a "%6d" > > > > What's wrong with %6d? I see no problem with it... > > > > What does the %6d do, compared to %d? > > >From what I have learned the %d is basically the decimal value of the variable > listed. so what is %6d? > > +------------------------------------------------------------+ > | Ensure that you have read the CircleMUD Mailing List FAQ: | > | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | > +------------------------------------------------------------+ +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST