stdio.c source code

I found the source to stdio.c ( http://www.jbox.dk/sanos/source/lib/stdio.c.html ). However, this makes no sense whatsoever:
1
2
3
4
5
6
7
8
9
10
11
12
int vprintf(const char *fmt, va_list args)
{
  return vfprintf(stdout, fmt, args);
}

int printf(const char *fmt, ...)
{
  va_list args;

  va_start(args, fmt);
  return vfprintf(stdout, fmt, args);
}


I really wanted to know how printf() worked... but it doesn't make any sense. vprintf returns vprintf??? So that's recursive. So why don't you get a stack overflow every time you use it?
Look closer.
Oh, god. My eyes must be broken.
Topic archived. No new replies allowed.