Problem with strlen and string containing color codes

From: Chuck Carson (
Date: 08/27/99

I am tring to print a string such in the following manner:

sprintf(buf, "%-50s %d\r\n", string, var);

However, if the string contains color codes, the second
argument does not line up correctly, ie. sprintf does not
display 50 spaces before the second var is printed.

How can I force this to keep the spacing correct?


     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  |

This archive was generated by hypermail 2b30 : 12/15/00 PST