int MGOkeyname (char *string, char *name, int size, int opt)
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:
Returns the number of characters written to name.