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

I can't think Help fprintf?

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



Joined: 08 Sep 2003
Posts: 105
Location: New Castle, DE

View user's profile Send private message

I can't think Help fprintf?
PostPosted: Wed Jun 16, 2004 6:47 am     Reply with quote

Hello All
I must be having a brain lock or what I'm thinking is not right.
Ok the two lines of code below work just fine.
But the next two lines will not work. AAE0 is not a string.
How can I get fprintf to output this?
Is the only way to do a loop with fputc?
Or am I not see some thing?

#define Xend "ok\xFF\xFF\xFF" // ASCII DC1
fprintf(SU1,"Now %s",Xend);


#define AAE0 0xAA,0xE0,0x00,0x00,0x00
fprintf(HU1,"%s",AAE);

Thanks All
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Wed Jun 16, 2004 8:21 am     Reply with quote

Code:

#define AAE0 0xAA,0xE0,0x00,0x00,0x00
fprintf(HU1,"%s",AAE);


typo error ?

Code:

#define AAE0 0xAA,0xE0,0x00,0x00,0x00
fprintf(HU1,"%s",AAE0);


Humberto
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