Re: startup getmainargs
Posted: Mon Jun 23, 2025 11:29 am
Wow, such portable! It doesn't work on any platform I know except i386.
That is no issue because the type given to va_arg must be a promoted type, i.e. int or bigger. GCC warns me that executing va_arg(ap, short) will abort at run time.