![]() |
Variadic functions with mcc18
Has anyone used variadic functions in their FRC code? I want to have a variadic debugging function, but the function appears to get ignored when called. I know the stdarg.h is available and the code compiles, bug I get zero output from the function call (it should do a varying number of printf's, including some for general newlines, which it does not do).
Any thoughts/opinions? If you need to see code, I can probably get a small example of what I want posted. |
Re: Variadic functions with mcc18
example would help:D
|
Re: Variadic functions with mcc18
First, add '#include <stdarg.h>' (without quotes at the top of the user_routines.c file).
Code:
void Debug_uchar(unsigned char count,...) |
Re: Variadic functions with mcc18
Your printfs will compile but will fail to work if you don't #include <stdio.h>.
|
Re: Variadic functions with mcc18
Quote:
|
| All times are GMT -5. The time now is 04:50. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi