Link to home
Start Free TrialLog in
Avatar of Richard Payne
Richard PayneFlag for Bulgaria

asked on

printf(*format,....) how to pass augument

How to pass the augument within zprintINFO(.....) to zprintf(.....)

This is for MSP430 and PIC24 code. zpintf is custom printf code to limits code space. I have repeating text INFO


//==================================================================
//==================================================================zprintf
// Purpose  :
// Input    :
// Output   :
// Note     :
//================================================================
void zprintfINFO(char *format, ...)
{
    zprintf(format,...);
}

//==================================================================
//==================================================================zprintf
// Purpose  :
// Input    :
// Output   :
// Note     :
//================================================================
void zprintf(char *format, ...)
{

Open in new window

Avatar of Deepu Abraham
Deepu Abraham
Flag of United States of America image

It should be similar to the way we pass it in printf

http://www.cplusplus.com/reference/cstdio/printf/

Best Regards,
Deepu Abraham K
Avatar of Richard Payne

ASKER

Hi Deepu

Sorry that not the answer. I do not wish to use the standard library since it not memory efficient.

R
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.