aboutsummaryrefslogtreecommitdiffstats
path: root/man3/libaxl_get_decnet_object.3
blob: 1bade125afe1fab64f0aff941ef0ab1b841e0acf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
.TH libaxl_get_decnet_object 3 libaxl
.SH NAME
libaxl_get_decnet_object - Get DECnet object name for a display
.B (ADVANCED)
.SH SYNOPSIS
.nf
#include <libaxl.h>

#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)