fb39ca4 / picoc

Automatically exported from code.google.com/p/picoc
0 stars 0 forks source link

printf() support for field widths #57

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In use with the SRV BFin controller we would like to capture data and 
display it on guages we have created. The SRV firmware sends sensor data 
with the following printf():

printf("##$A%d %4d\r\n", channel, analog(channel));

If we could format our data in the same way, then the gauges would react, 
but it looks like picoC does not support the %4d function so this is what 
we would like to see added.  

Original issue reported on code.google.com by t1j...@gmail.com on 22 Oct 2009 at 1:09

GoogleCodeExporter commented 9 years ago
Changed to "enhancement"

Original comment by zik.sale...@gmail.com on 22 Oct 2009 at 1:43

GoogleCodeExporter commented 9 years ago
Field widths, zero padding and left/right justification have been added to head
version #342. These currently only affect integer formatting types %d, %x, %u 
and %b.

Original comment by zik.sale...@gmail.com on 22 Oct 2009 at 8:11

GoogleCodeExporter commented 9 years ago
Closed

Original comment by zik.sale...@gmail.com on 22 Oct 2009 at 8:15