| Robert67 
 
 
 Joined: 17 Oct 2005
 Posts: 0
 
 
 
			    
 
 | 
			
				| Variable arguments question |  
				|  Posted: Mon Oct 17, 2005 4:04 pm |   |  
				| 
 |  
				| CCS C doesn't appear to support variable arguments, however it does have support for printf, fprintf, etc. which do use variable arguments.  That makes me think there's something there in CCS C that I'm missing. 
 I would like to define a function that takes a variable number of args, like printf.  Does anyone have any suggestions for working around this issue?  Should I just rethink my logic and try to solve the problem another way without va_list, etc?
 
 Thanks for any suggestions.
 
 E.g.
 myprintf(char *format, ...)
 {
 va_list args;
 //do stuff
 }
 _________________
 Rob Bruce
 Senior Engineer
 Current Electronics
 www.currentlelectronics.com
 |  |