Hi,
Can anyone give the list of all format specifiers for the printf instruction ,
like %d- int
%f- float
asmboy
Joined: 20 Nov 2007 Posts: 2128 Location: albany ny
Posted: Wed Mar 06, 2013 1:19 pm
have you tried the CCS MANUAL??
vishnuvarkala
Joined: 02 Mar 2013 Posts: 4 Location: India
Format specifiers for printf
Posted: Wed Mar 06, 2013 2:19 pm
c
Character
s
String or character
u
Unsigned int
d
Signed int
Lu
Long unsigned int
Ld
Long signed int
x
Hex int (lower case)
X
Hex int (upper case)
Lx
Hex long int (lower case)
LX
Hex long int (upper case)
f
Float with truncated decimal
g
Float with rounded decimal
e
Float in exponential format
w
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.
dyeatman
Joined: 06 Sep 2003 Posts: 1933 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