From 0e676861b71b8a17fdf0b968ef32751e2df30444 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 10 May 2020 17:26:03 +0200 Subject: Documentation + return -1 screen when not specified MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libaxl_get_decnet_object.3 | 56 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 libaxl_get_decnet_object.3 (limited to 'libaxl_get_decnet_object.3') diff --git a/libaxl_get_decnet_object.3 b/libaxl_get_decnet_object.3 new file mode 100644 index 0000000..325b44c --- /dev/null +++ b/libaxl_get_decnet_object.3 @@ -0,0 +1,56 @@ +.TH libaxl_get_decnet_object 3 libaxl +.SH NAME +libaxl_get_decnet_object - Get DECnet object name for a display +.SH SYNOPSIS +.nf +#include + +#define LIBAXL_DECNET_OBJECT_MAX /* value omitted */ + +int libaxl_get_decnet_object(char *\fIbuf\fP, size_t \fIsize\fP, int *\fIdisplay\fP); +.fi +.SH DESCRIPTION +The +.BR libaxl_get_decnet_object () +function stores, in the buffer specified +in the +.I buf +parameter, the DECnet object name used +for the display specified in the +.I display +parameter. +.PP +The value of the +.I size +parameter shall be the size of the buffer; +.I LIBAXL_DECNET_OBJECT_MAX +is recommended for static buffers, as +this is always sufficient. +If buffer is +.IR NULL , +.I size +must be 0. +.SH RETURN VALUE +The +.BR libaxl_get_decnet_object () +function returns the number of bytes +the DECnet object name consists of +(this excludes the terminating NUL byte +used in C strings, which is also written +to the buffer if it fits), or -1 on +failure. +.SH ERRORS +The +.BR libaxl_get_decnet_object () +function may fail if +.TP +.I EOVERFLOW +The value of the +.I size +argument is greater than {INT_MAX}. +.BR libaxl_get_decnet_object () +function cannot fail. +.SH NOTES +None. +.SH SEE ALSO +.BR libaxl_get_tcp_port (3) -- cgit v1.2.3-70-g09d2