http://www.w3.org/TR/html4/loose.dtd"> StdGUI User Data Functions

StdGUI User Data Functions

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUES
AUTHOR

NAME

StdGUI User Data Functions

SYNOPSIS

int set_userdata(TARGET *p_tgt, char *p_name, void *p_data);

int get_userdata(TARGET *p_tgt, char *p_name, void **p_data);

int delete_userdata(TARGET *p_tgt, char *p_name);

int index_userdata(TARGET *p_tgt, int p_index, char **p_name, void **p_data);

DESCRIPTION

The set_userdata() function assigns a user-supplied data value (actually a void pointer) to a named slot on a window, widget or application context.

The get_userdata() function returns a named user data value from a window, widget or application context.

The delete_userdata() function removes a named user data value from a window, widget or application context.

The index_userdata() function returns information about user data values on a window, widget or application context. Each user data item is indexed by a simple integer and the data item name and value are returned in the p_name and p_data parameters.

RETURN VALUES

All four functions return zero (0) on success, non-zero on failure.

AUTHOR

Jeffrey Dutky

dutky@bellatlantic.net or jeff.dutky@gmail.com

http://members.bellatlantic.net/~dutky