function with variable number of parasmeters

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I can't get right func with variable number of parameters.
void start (void (*fn_ptr)(void), char size, char num, ... ) {
register start_param_list_s *p;

.......
init_task ( size, fn_ptr );
reg(num);
........
}

This set of params will be repeated several times.
Is stdarg.h a solution?

Thanks.