quote:
/* Define ISO C stdio on top of C++ iostreams.
Copyright (C) 1991, 1994-1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, write to the Free
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
Here is the beginning of stdio.h. As you can see, it most definitely is not closed source. What this file contains are simply the usual C-type forward declarations with some compiler conditionals that may or may not be included, depending upon what system it's being run on and what features it supports. It might seem all a bit arcane right now, but there really isn't anything too out of the ordinary there. Of course, stdio.h itself depends upon three other files: stddef.h, features.h, and bits/types.h.
Here is the part that allows printf to work. This forward declairs a function, printf, that returns an integer to the calling routine. Since it's declaired to be an "extern", the compiler will look in other files for the actual definition and implementation of printf. "__THROW" is a macro for error handling should something go wrong and printf can't execute. Of course, being at the "Hello World!" stage, there's no way you'd be expected to know all this just yet. Keep at it, and all will become clear.
_______________________________________
Live Free or Die: Linux

"There: now you'll never have to look at those dirty Windows anymore" -- Daffy Duck
