Quote:
|
Originally Posted by gwross
Bill and Mark, if you could share your code, it would be appreciated.
|
Here's mine.
I didn't include some related minor changes made to the ifi_utilities functions.
We added "0x" in front of the hex prints and added a compile flag "_NO_PRINTS", so we could easily turn on/off all prints.
We kept the 80 byte limitation, but truncate strings at 80 bytes. I suppose I could have added "..." or something at the end of a truncated string to indicate when a text string is too long, but this code doesn't create one huge string.
It also doesn't care about the size of the variable being printed. There are separate calls for printing signed vs unsigned integers, and I never paid any attention to floats.
It's inefficient in that it outputs in discrete chunks.
I made it as simple as I could, so the newbie programmers could more easily follow the logic.
Send me any improvements you think of.