Can anyone give the list of all format specifiers for the printf instruction ,
like %d- int
Joined: 20 Nov 2007 Posts: 2128 Location: albany ny
Posted: Wed Mar 06, 2013 1:19 pm
have you tried the CCS MANUAL??
Joined: 02 Mar 2013 Posts: 4 Location: India
Format specifiers for printf
Posted: Wed Mar 06, 2013 2:19 pm
String or character
Long unsigned int
Long signed int
Hex int (lower case)
Hex int (upper case)
Hex long int (lower case)
Hex long int (upper case)
Float with truncated decimal
Float with rounded decimal
Float in exponential format
Unsigned int with decimal place inserted. Specify two numbers for n. The first is a total field width. The second is the desired number of decimal places.
Joined: 06 Sep 2003 Posts: 1894 Location: Norman, OK
They should look for the info in the latest CCS manual.
Posted: Wed Mar 06, 2013 9:12 pm
Posting that here might have seemed the right thing to do.
However, if someone else comes looking for the info and the manual has
changed, what you posted may no longer be complete or correct. The
proper thing for them to do would be to consult the latest manual. _________________ Google and Forum Search are some of your best tools!!!!
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum