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:
“Shopping malls are liquid TVs for the end of the twentieth century. A whole micro-circuitry of desire, ideology and expenditure for processed bodies drifting through the cyber-space of ultracapitalism.”
—Arthur Kroker (b. 1945)
“I find it interesting that the meanest life, the poorest existence, is attributed to Gods will, but as human beings become more affluent, as their living standard and style begin to ascend the material scale, God descends the scale of responsibility at a commensurate speed.”
—Maya Angelou (b. 1928)
“Every library should try to be complete on something, if it were only the history of pinheads.”
—Oliver Wendell Holmes, Sr. (18091894)
“The very natural tendency to use terms derived from traditional grammar like verb, noun, adjective, passive voice, in describing languages outside of Indo-European is fraught with grave possibilities of misunderstanding.”
—Benjamin Lee Whorf (18971934)