Thread: Printf
View Single Post
  #5   Spotlight this post!  
Unread 20-01-2006, 02:36
eugenebrooks eugenebrooks is offline
Team Role: Engineer
AKA: Dr. Brooks
no team (WRRF)
 
Join Date: Jan 2004
Rookie Year: 2001
Location: Livermore, CA
Posts: 601
eugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond repute
Re: Printf

Quote:
Originally Posted by BradAMiller
There's a copy of printf in the C library supplied by Microchip. In fact you can look at the source code in the src directory in the mcc18 install.

It implements most of the standard printf features except floating point. And does support longs and some of the other data types.
You can also get the extended integer formatting code referred to in the white paper: "Introduction to C programming for first robotics applications" that will format signed and unsigned longs and will also format fixed point numbers, if you are using them. The white paper indicates where to download this code.