Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Correcting a typo

...

Code Block
bgColor#ccccff
langcpp
#include <cstdarg>
#include <iostream>
 
extern "C" void f(const char *s, ...) {
  va_list list;
  va_start(list, as);
  std::cout << (s ? s : "") << ", " << va_arg(list, int);
  va_end(list);
}

...