The OpenD Programming Language

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)
extern (C) nothrow @nogc
const(Section)*
getsectbyname
(
const scope char* segname
,
const scope char* sectname
)

Parameters

segname char*

the name of the segment

sectname char*

the name of the section

Return Value

Type: const(Section)*

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

Meta