O'Reilly logo

A Practical Guide to Red Hat® Linux® 8 by Mark G. Sobell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required