2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
The Glibc package contains the GNU C Library.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2><title>Description</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
The C Library is a collection of commonly used functions in programs.
|
2001-04-05 16:36:41 +01:00
|
|
|
This way a programmer doesn't need to create his own functions for every
|
2001-03-16 18:09:38 +00:00
|
|
|
single task. The most common things like writing a string to the screen
|
2001-01-24 00:31:17 +00:00
|
|
|
are already present and at the disposal of the programmer.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2001-04-08 03:35:02 +01:00
|
|
|
The C library (actually almost every library) come in two flavors:
|
2001-01-24 00:31:17 +00:00
|
|
|
dynamic ones and static ones. In short when a program uses a static C
|
|
|
|
library, the code from the C library will be copied into the executable
|
|
|
|
file. When a program uses a dynamic library, that executable will not
|
|
|
|
contain the code from the C library, but instead a routine that loads
|
|
|
|
the functions from the library at the time the program is run. This
|
2001-03-16 18:09:38 +00:00
|
|
|
means a significant decrease in the file size of a program. The
|
2001-03-23 03:40:35 +00:00
|
|
|
documentation that comes with the C Library describes this in more
|
|
|
|
detail, as it is too complicated to explain here in one or two lines.
|
2001-01-24 00:31:17 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|