https://en.cppreference.com/w/c/variadic.html
Я хочу определить две функции, но я не знаю, как это правильно сделать.
»
Код: Выделить всё
fooКод: Выделить всё
void foo_1(const char **argv);
void foo_2(const char* argv, ...);
< /code>
barКод: Выделить всё
void bar_3(...optional_strings_at_first..., const char* mandatory_string_at_last);
< /code>
В чем разница между "foo_1Код: Выделить всё
foo_2Код: Выделить всё
bar_3Код: Выделить всё
bar_3Подробнее здесь: https://stackoverflow.com/questions/797 ... c-function
Мобильная версия