Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

printf and fprintf without va_end #116

Closed
the-die opened this issue Mar 29, 2022 · 0 comments
Closed

printf and fprintf without va_end #116

the-die opened this issue Mar 29, 2022 · 0 comments

Comments

@the-die
Copy link

the-die commented Mar 29, 2022

void
fprintf(int fd, const char *fmt, ...)
{
  va_list ap;

  va_start(ap, fmt);
  vprintf(fd, fmt, ap);
  // va_end(ap);
}

void
printf(const char *fmt, ...)
{
  va_list ap;

  va_start(ap, fmt);
  vprintf(1, fmt, ap);
  // va_end(ap);
}
@the-die the-die changed the title printf and vprintf doesn't have va_end printf and fprintf doesn't have va_end Mar 29, 2022
@the-die the-die changed the title printf and fprintf doesn't have va_end printf and fprintf without va_end Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants