suboptarg

global variable used by the getsubopt() function 

Global Variable


SYNOPSIS

#include <stdlib.h>

extern char *suboptarg;


DESCRIPTION

The suboptarg variable is used by the getsubopt() function. When getsubopt() fails to match a suboption token, it sets suboptarg to point to the unmatched suboption. This can be used by the calling program to determine what error handling might be necessary.

Programs should obtain the definition of suboptarg by the inclusion of <stdlib.h>. The practice of defining suboptarg in a program as

extern char *suboptarg;

(without including <stdlib.h>) is unsupported.


CONFORMANCE

MKS Toolkit UNIX APIs extension.


PORTING ISSUES

The suboptarg variable is a non-portable extension to the UNIX 98 specification found on some systems.


AVAILABILITY

MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
getsubopt()


MKS Toolkit 9.3 Documentation Build 6.