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

PTC 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

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


SEE ALSO

Functions:
getsubopt()


PTC MKS Toolkit 10.5 Documentation Build 40.