RETURN VALUES
The g_read_data function returns a pointer to a data buffer or NULL if an error occurred. In that case an error value is stored in the error argument unless it is NULL. The g_write_data function returns 0 if successful; otherwise an error code is returned.
ERRORS
Possible errors: