C Standard Library - The C Standard Library in Other Languages

The C Standard Library in Other Languages

Some languages include the functionality of the standard C library in their own libraries. The library may be adapted to better suit the language's structure, but the operation semantics are kept similar. The C++ language, for example, includes the functionality of the C standard library in the namespace std (e.g., std::printf, std::atoi, std::feof), in header files with similar names to the C ones (cstdio, cmath, cstdlib, etc.). Other languages that take similar approaches are D and the main implementation of Python known as CPython. In the latter, for example, the built-in file objects are defined as "implemented using C's stdio package", so that the available operations (open, read, write, etc.) are expected to have the same behavior as the corresponding C functions.

Read more about this topic:  C Standard Library

Famous quotes containing the words the c, standard, library and/or languages:

    “As between these two, the need that in its haste to be abolished cannot pause to be stated and the need that is the absolute predicament of particular human identity, one does not presume to suggest a relation of worth. Yet the distinction is perhaps not idle, for it is from the failure to make it that proceeds the common rejection as “obscure” of most that is significant in modern music, painting and literature.”
    —Samuel Beckett (1906–1989)

    “A dwarf who brings a standard along with him to measure his own size—take my word, is a dwarf in more articles than one.”
    —Laurence Sterne (1713–1768)

    “I view askance a book that remains undisturbed for a year. Oughtn’t it to have a ticket of leave? I think I may safely say no book in my library remains unopened a year at a time, except my own works and Tennyson’s.”
    —Carolyn Wells (1862–1942)

    “Science and technology multiply around us. To an increasing extent they dictate the languages in which we speak and think. Either we use those languages, or we remain mute.”
    —J.G. (James Graham)