Atmel CAVR-4 Manual De Usuario
CAVR-4
Part 2. Compiler reference
Implementation-defined behavior
267
%p in printf() (7.9.6.1)
The argument to a
%p
conversion specifier, print pointer, to
printf()
is treated as
having the type
void *
. The value will be printed as a hexadecimal number, similar to
using the
%x
conversion specifier.
%p in scanf() (7.9.6.2)
The
%p
conversion specifier, scan pointer, to
scanf()
reads a hexadecimal number and
converts it into a value with the type
void *
.
Reading ranges in scanf() (7.9.6.2)
A
-
(dash) character is always treated as a range symbol.
File position errors (7.9.9.1, 7.9.9.4)
On file position errors, the functions
fgetpos
and
ftell
store
EFPOS
in
errno
.
Message generated by perror() (7.9.10.4)
The generated message is:
usersuppliedprefix:errormessage
Allocating zero bytes of memory (7.10.3)
The
calloc()
,
malloc()
, and
realloc()
functions accept zero as an argument.
Memory will be allocated, a valid pointer to that memory is returned, and the memory
block can be modified later by
block can be modified later by
realloc
.
Behavior of abort() (7.10.4.1)
The
abort()
function does not flush stream buffers, and it does not handle files,
because this is an unsupported feature.
Behavior of exit() (7.10.4.3)
The argument passed to the
exit
function will be the return value returned by the
main
function to
cstartup
.
Environment (7.10.4.4)
The set of available environment names and the method for altering the environment list
is described in Environment interaction, page 73.
is described in Environment interaction, page 73.