get a pointer to the current network prefix root
#include <sys/prfx.h> char *qnx_prefix_getroot( void );
The qnx_prefix_getroot() function returns a pointer to the current network prefix root for the calling process.
A pointer to a static buffer that contains the current network prefix root.
Don't modify the contents of this static buffer. |
#include <stdio.h> #include <sys/prfx.h> void main() { printf( "Prefix root is %s\n", qnx_prefix_getroot() ); }
QNX
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | Yes |