getsegbyname

Returns the segment with the given segment name.

Returns the segment structure of the given segment in the mach executable it is linked into.

___ void main() { import core.sys.darwin.mach.getsect; assert(getsegbyname("__TEXT")); } ___

version(CoreDdoc)
getsegbyname
(
const scope char* segname
)

Parameters

segname
Type: char*

the name of the segment

Return Value

Type: const(SegmentCommand)*

a pointer to the section structure or null if it doesn't exist

Suggestion Box / Bug Report