Using high-level functions when exploiting
the C library
High-level I/O functions can be used if the low-level functions
are re-implemented. High-level I/O functions are those such as fprintf(), printf(), scanf(), puts(), fgets(), fread(), fwrite(), and perror().
Low-level functions are those such as fputc(), fgetc(),
and __backspace(). Most of the formatted output
functions also require a call to setlocale().
Anything that uses locale must not be
called before first calling setlocale().setlocale() selects the
appropriate locale. For example, setlocale(LC_ALL, "C"),
where LC_ALL means that the call to setlocale() affects
all locale categories, and "C" specifies the
minimal environment for C translation. Locale-using functions include
the functions in ctype.h and locale.h,
the printf() family, the scanf() family, ato*, strto*, strcoll/strxfrm,
and most of time.h.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.