Skip to main content

The Standard C Libraries

  • Chapter
A Book on C

Part of the book series: Macmillan Computer Science Series ((COMPSS))

  • 94 Accesses

Abstract

The definition of standard C specifies a library which must be present in any conforming implementation. The functions supplied in the library are declared in several header files, divided according to the type of services provided by the functions. Many of the functions defined by the standard are supplied even in older implementations and most of them are probably present on your system, even though the original C definition did not specify any of them. The header files declaring the library functions also specify macros and variables which may be used by the applications to accomplish various tasks as described below. Additionally, the headers may define macros with the same names as the corresponding library functions, provided that the macros can safely be used in any place and with any set of arguments with which the corresponding function can be called. In particular, it must be guaranteed that macro arguments are evaluated only once. The applications can always ensure that a true library function rather than a macro is called by using the #undef preprocessor directive. It can also be done locally by enclosing the function name in parentheses. For syntactic reasons, the closing parenthesis will prevent the interpretation of the identifier as a macro.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Copyright information

© 1993 B. A. E. Meekings, T. P. Kudrycki and M. D. Soren

About this chapter

Cite this chapter

Meekings, B.A.E., Kudrycki, T.P., Soren, M.D. (1993). The Standard C Libraries. In: A Book on C. Macmillan Computer Science Series. Palgrave, London. https://doi.org/10.1007/978-1-349-12804-4_13

Download citation

  • DOI: https://doi.org/10.1007/978-1-349-12804-4_13

  • Publisher Name: Palgrave, London

  • Print ISBN: 978-0-333-56919-1

  • Online ISBN: 978-1-349-12804-4

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics