Sortix
Sortix Download Manual Development Source Code News Blog More
current nightly

Sortix volatile manual

This manual documents Sortix volatile, a development build that has not been officially released. You can instead view this document in the latest official manual.

PANEL_USERPTR(3) Library Functions Manual PANEL_USERPTR(3)

NAME

set_panel_userptr, panel_userptr — user data associated with panels

LIBRARY

Z-order for curses windows (libpanel, -lpanel)

SYNOPSIS

#include <panel.h>

int
set_panel_userptr(PANEL *p, char *data);

char *
panel_userptr(PANEL *p);

DESCRIPTION

The function set_panel_userptr() can be used to associate arbitrary user data with a panel.

The data associated with a panel can be obtained with panel_userptr().

RETURN VALUES

Functions returning pointers will return NULL if an error is detected. The functions that return an int will return one of the following values:

OK
The function completed successfully.
ERR
An error occurred in the function.

SEE ALSO

panel(3)

October 28, 2015 Sortix 1.1.0-dev
Copyright 2011-2025 Jonas 'Sortie' Termansen and contributors.
Sortix's source code is free software under the ISC license.
#sortix on irc.sortix.org
@sortix_org