Hello guys, sorry to bother you again.

Are variable length argument functions accepted in mspgcc?

I have this code:

void myprintf(char *fmt,...)
{
    char *p = fmt;
    va_list argp;

    putchar(*p);

    va_start(argp, fmt);

    va_end(argp);
}

It should print the first character of the string fmt. When I remove the 3
dots in the function definition, it correctly prints it, but when running
it like shown, it does nothing. Is there something I'm missing here?

Again, sorry to bother you guys, but google didn't turn up anything...

-- 
--------------------------------------
Sergio Campamá
sergiocamp...@gmail.com
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to