How to solve Variadic Arguments issue (using C): Difference between revisions
Jump to navigation
Jump to search
(Created page with "First of all, what are Variadic Arguments (VA)? It's a way to NOT define the number of arguments a function (or method) takes. You only define the args you '''definitely''' go...") |
|||
Line 5: | Line 5: | ||
== The Issue == | == The Issue == | ||
I<ref>[[ | I<ref>[[User:Heiko]]</ref> have some code that | ||
== The Solution == | == The Solution == |
Revision as of 10:32, 28 November 2019
First of all, what are Variadic Arguments (VA)? It's a way to NOT define the number of arguments a function (or method) takes. You only define the args you definitely going to be given on every call. All additional arguments are then optional, but can be used if given.
While porting C-code from Linux to AS/400 I ran into a problem. This article is going to explain the issue and the solution.
The Issue
I[1] have some code that
The Solution
- Links
- https://gcc.gnu.org/onlinedocs/cpp/Variadic-Macros.html GNU.org explaining VA