View Single Post
  #15   Spotlight this post!  
Unread 15-01-2004, 12:47
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: Trouble with pwm outputs

the only situation in which I could think printf would use a pointer is in printing a string, as that is a character array and thus must be passed by reference.

as Mike said, you have to have the 0 in the % code to tell printf to pad with zeros - otherwise it pads with spaces.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)