summaryrefslogtreecommitdiffstats
path: root/rose.3
blob: 7b0a33a21e9ffe68286a9399e9c187d7ffdbd15c (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
.TH INET 3  "20 April 1999" "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
\fBrose_aton()\fP converts the ROSE address \fIcp\fP from an ASCII
representation into network format.
.PP
\fBrose_ntoa()\fP converts the ROSE address \fIcp\fP that is 
network format to a string that is the ASCII
representation of the address.
.PP
\fBrose_cmp()\fP compares the two ROSE address \fIa1\fP and \fIa2\fP
that are in network format.
.SH "RETURN VALUE"
The \fBrose_ntoa()\fP and \fBrose_aton()\fP functions return zero if all
went ok, -1 if not.
.PP
The \fBrose_cmp()\fP returns 0 if address \fIa1\fP and \fIa2\fP are identical,
1 otherwise.
.SH "SEE ALSO"
.BR ax25 "(4), " netrom "(4), " rose "(4)"