View Single Post
  #4   Spotlight this post!  
Unread 08-03-2004, 11:34
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,855
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: printf bug - beware!

Quote:
Originally Posted by deltacoder1020
tsk tsk IFI... this is something you think they would put into the docs... (and if I missed it, oh well, i was speedreading :S)
It all depended on where you looked.

printf_lib.c header:
Code:
* 3. The %s directive only supports a string of 40 bytes and the format string
*	 may not exceed 80 bytes.
The first time we tried to printf a "long" convinced us to toss printf_lib and write our own. Ours took up 40 bytes and worked better, printf_lib took up 4000 bytes. I know many other teams did the same, or rewrote the original printf_lib.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 08-03-2004 at 14:57.