getsectbyname

Returns the section with the given section name.

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

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

version(CoreDdoc)
const(Section)*
getsectbyname
(
const scope char* segname
,
const scope char* sectname
)

Parameters

segname
Type: char*

the name of the segment

sectname
Type: char*

the name of the section

Return Value

Type: const(Section)*

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

Suggestion Box / Bug Report