mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
17 lines
245 B
C
17 lines
245 B
C
#include <stdarg.h>
|
|
#include <stdlib.h>
|
|
|
|
int func(int arg1 , ...) {
|
|
va_list ap;
|
|
va_list copy;
|
|
va_start(ap , arg1);
|
|
va_copy( copy , ap );
|
|
|
|
va_end(ap);
|
|
return 1;
|
|
}
|
|
|
|
int main(int argc, char ** argv) {
|
|
func(10 , NULL , "String" );
|
|
}
|