Skip to main content
Version: 9.0.2

gr_context_get_screen

#include <gre/gre.h>
int gr_context_get_screen(
gr_action_context_t *action_context,
char *buffer,
int buffer_len
);

The gr_context_get_screen function stores the fully qualified name of the screen in the buffer provided up to buffer_len characters.

The gr_context_get_screen function will build the fully qulified name for the screen context based on the action context and store it in the buffer that is provided, up to buffer_len bytes. It will return the length of the fully qualified name. If there is no screen context in the action context, the function will return -1 and set the first character in buffer to NULL.

Parameters

ParameterTypeDescription
action_contextgr_action_context_t *The action context to get the fully qualified name from.
bufferchar*The character buffer to store the screen's fully qualified name in, the first character may be set to null, if there is no screen in the action context.
buffer_lenintThe storage space that the buffer has to store the name, see function gr_context_max_fqn().

Returns

TypeDescription
intThe length of the screen name if there is a screen in the context, -1 otherwise.