Operating Systems > Linux and UNIX

C Programming from literally thr ground up

<< < (2/4) > >>

badkarma:
there's no such thing as a closed source header (even with a closed source library, the header is *allways* available)

the implementation can be closed source though (but you won't see any closed source libraries in most (all?) linux distributions)

TheQuirk:
I understand you can see their content, but are there any ones that are illegal to look at?

voidmain:
Heh heh, not hardly.  If they were illegal to look at they would not be included. *.c and *.h files are "source" code.  If you have binaries there is no need for *.c and *.h files.

badkarma:
if you have binaries, and it's a development library, you do have *.h files, when it's closed source you don't have *.c files though (so you can see all function definitions and use those functions in your code, however you cannot see the implementation of said functions)

to get back to the original topic:

Calum ... skip C and learn C++, it's a much cleaner programming language (and it's a bit harder to learn C++ if you're in a C mindset (the basics are the same, but C++ uses a lot of different programming idioms)

in the case of your hello world program there would only be minute differences:

in C:


--- Code: ---
--- End code ---

in C++:


--- Code: ---
--- End code ---

and the nice way of doing it in C++:


--- Code: ---
--- End code ---

[ July 16, 2002: Message edited by: BadKarma ]

KernelPanic:
I agree with BadKarma C++ is better.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version