CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Format specifiers for printf

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
vishnuvarkala



Joined: 02 Mar 2013
Posts: 4
Location: India

View user's profile Send private message Send e-mail

Format specifiers for printf
PostPosted: Wed Mar 06, 2013 12:58 pm     Reply with quote

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

View user's profile Send private message AIM Address

PostPosted: Wed Mar 06, 2013 1:19 pm     Reply with quote

have you tried the CCS MANUAL??
vishnuvarkala



Joined: 02 Mar 2013
Posts: 4
Location: India

View user's profile Send private message Send e-mail

Format specifiers for printf
PostPosted: Wed Mar 06, 2013 2:19 pm     Reply with quote

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.



Very Happy
dyeatman



Joined: 06 Sep 2003
Posts: 1934
Location: Norman, OK

View user's profile Send private message

They should look for the info in the latest CCS manual.
PostPosted: Wed Mar 06, 2013 9:12 pm     Reply with quote

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!!!!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group