END(S) UNIX System V END(S)
Name
end, etext, edata - last locations in program
Syntax
extern end;
extern etext;
extern edata;
Description
These names refer neither to routines nor to locations with
interesting contents. The address of etext is the first
address above the program text, edata above the initialized
data region, and end above the uninitialized data region.
When execution begins, the program break (the first location
beyond the data) coincides with end, but the program break
may be reset by the routines of brk(S), malloc(S), standard
input/output (stdio(S)), the profile (-p) option of cc(CP),
and so on. Thus, the current value of the program break
should be determined by sbrk ((char *)0) (see brk(S)).
See Also
cc(CP), brk(S), malloc(S), stdio(S)
Standards Conformance
edata, end, and etext are conformant with:
The X/Open Portability Guide II of January 1987.
(printed 6/20/89)