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

fprint f parameter limit ?

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



Joined: 01 Jul 2010
Posts: 9246
Location: Greensville,Ontario

View user's profile Send private message

fprint f parameter limit ?
PostPosted: Sun Oct 16, 2011 6:29 am     Reply with quote

While cleaning up some code I've hit a problem. In using the fprintf function, I can't send more than 29 parameters (variables) at one time. Keep getting the error message 'too many parameters'.
Compiles fine for 29, fails for 30 or more....

Has anyone else run into this?

PCHWD 4.113 PIC18F4550
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Oct 16, 2011 2:54 pm     Reply with quote

Yes there is a limit to the number of parameters in printf or fprintf.
I know there is a previous thread on it, but I just can't find it.
The solution given was to break it up into two or more separate statements.
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