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:

    “History is strewn with the wrecks of nations which have gained a little progressiveness at the cost of a great deal of hard manliness, and have thus prepared themselves for destruction as soon as the the movements of the world gave a chance for it.”
    —Walter Bagehot (1826–1877)

    “When Freedom, from her mountain height,
    Unfurled her standard to the air,
    She tore the azure robe of night,
    And set the stars of glory there;”
    —Joseph Rodman Drake (1795–1820)

    “To a historian libraries are food, shelter, and even muse. They are of two kinds: the library of published material, books, pamphlets, periodicals, and the archive of unpublished papers and documents.”
    —Barbara Tuchman (1912–1989)

    “Wealth is so much the greatest good that Fortune has to bestow that in the Latin and English languages it has usurped her name.”
    —William Lamb Melbourne, 2nd Viscount (1779–1848)