Go Down

Topic: fprintf padding format (Read 1 time) previous topic - next topic

Yuntastic

I realise this might be a little off-topic in an Arduino forum, but it is related to the linino distro on the AR9331.

In my binary reader code posted here, the fprintf output seems to be ignoring my padding format ("%02x "), eg:

Code: [Select]
16000000 97000000 61000000 9e000000 8a000000 53000000 6b000000 5000000 37000000 4f000000 98000000 1e000000 9000000 1e000000 b8000000 99000000 2a000000 ff000000 d9000000 d9000000

It works fine on my Ubuntu machine when compiled for x86.

Any ideas on how to remove the leading (/lagging as its big endian) zeros?

Go Up