Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
a local clone.
core.sys.darwin.crt_externs
D header file for libc/crt_externs.h.
License:
Authors:
Jacob Carlborg
- struct
MachHeader; - In reality this will be core.sys.darwin.mach.loader.mach_header on 32-bit platforms and core.sys.darwin.mach.loader.mach_header_64 64-bit platforms.
- char***
_NSGetArgv(); - Returns the program arguments.These are the same arguments passed to the C main function:
extern (C) void main (char** argv, int argc, char** envp) {}
Same as the above argv.Return the program arguments as a pointer to an array of null terminated C strings
- int*
_NSGetArgc(); - Returns the number of program arguments.These are the same arguments passed to the C main function:
extern (C) void main (char** argv, int argc, char** envp) {}
Same as the above argc.Return a pointer to the number of program arguments
- char***
_NSGetEnviron(); - Returns the program environment variables.These are the same arguments passed as an array to the C main function:
extern (C) void main (char** argv, int argc, char** envp) {}
Same as the above envp.Return the program environment variables as a pointer to an array of null terminated C strings
- char**
_NSGetProgname(); - Returns the full path to the current executable as a pointer to a null terminated C string.
- MachHeader*
_NSGetMachExecuteHeader(); - Returns the Mach-O header of the current executable.
Copyright © 1999-2026 by the D Language Foundation | Page generated by
Ddoc on Wed Aug 5 15:39:11 2026