SYNOPSIS

int MGOkeyname (char *string, char *name, int size, int opt)

DESCRIPTION

The MGOkeyname() function parses a key-value string and returns the keyname part. size is the maximum number of characters to copy into name. If string has no value part, the entire string is returned. opt controls how the value is post-processed. It can be one or more of:

RETURN VALUE

Returns the number of characters written to name.

SEE ALSO

MGOparse(), MGOvalue()