Chapter Summary
The operating system interface to C programs and a variety of software development tools make the GNU/Linux system well suited to programming in C. The C libraries provide general-purpose C functions that make operating system services and other functionality available to C programmers. The standard C library, libc, is always accessible to C programs, and you can specify other libraries by using the –l option to the gcc compiler.
You can write a C program by using a text editor, such as pico, vi, or emacs. C programs always have a function named main and often have several other functions. Preprocessor directives define symbolic constants and macros and instruct the preprocessor to include header files.
When you use gcc, it calls ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access