summaryrefslogtreecommitdiffstats
path: root/rose.3
blob: 98d81d8e5b16677dc1b34d0fbeb056d4f4e503c5 (plain)
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
.TH INET 3  "2008-Feb-04" "Linux" "Linux Programmer's Manual"
.SH NAME
rose_aton, rose_ntoa, rose_cmp \- ROSE Address manipulation routines
.SH SYNOPSIS
.nf
.B #include <netrose/rose.h>
.sp
.BI "int rose_aton(const char *" cp ", char *" inp ");"
.sp
.BI "char * rose_ntoa(rose_address *" cp ");"
.sp
.BI "int rose_cmp(rose_address *" a1 ", rose_address *" a2 ");"
.fi
.SH DESCRIPTION
The
.BR rose_aton ()
converts the ROSE address
.I cp
from an ASCII representation into network format.
.PP
The
.BR rose_ntoa ()
converts the ROSE address
.I cp
that is network format to a string that is the ASCII representation
of the address.
.PP
The
.BR rose_cmp ()
compares the two ROSE address
.I a1
and
.I a2
that are in network format.
.SH "RETURN VALUE"
The
.BR rose_ntoa ()
and
.BR rose_aton ()
functions return zero if all went OK, -1 if not.
.PP
The
.BR rose_cmp ()
returns 0 if addresses pointer by
.I a1
and
.I a2
are identical, 1 otherwise.
.SH "SEE ALSO"
.BR ax25 "(4), " netrom "(4), " rose "(4)"