Society of Robots - Robot Forum

Software => Software => Topic started by: KurtEck on November 12, 2010, 12:22:24 PM

Title: Minor documentation error in Webbotlib with rprintf...
Post by: KurtEck on November 12, 2010, 12:22:24 PM
Hardly worth mentioning other than I wasted a few minutes figuring out my lines like:
rprintf("%2x", mybyte);
was outputting %2x instead of 2 hex digits...

I followed the information in the PDF(build 27):
Quote
If you have declared PRINTF_COMPLEX then it will include some additional code which
allows: %d, %ld, %u, %lu, %o, %x, %c and %s as well as the width, precision and
padding modifiers from the C specification. Here are some examples:-

Should have been: RPRINTF_COMPLEX

Kurt
Title: Re: Minor documentation error in Webbotlib with rprintf...
Post by: Webbot on November 12, 2010, 02:11:58 PM
Thanks - will fix.