getProcessPath

Gets the path of the current process.

To fit the whole path inside the given buffer without using the heap the buffer has to be equal or larger than:

On darwin: 1024 On freebsd: 1024 On linux: 1024 On windows: tango.sys.win32.UserGdi.MAX_PATH + 1

char[]
getProcessPath
(
char[] buf = null
)

Parameters

buf char[]

this buffer will be used unless it's to small

Return Value

Type: char[]

the path of the current process

Meta