---
name: "rose"
section: "3"
platform: "linux"
package: "libax25-dev"
version: "0.0.12-rc5+git20230513+5581005-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rose"
---

# rose(3)

ROSE Address manipulation routines

## NAME

rose\_aton, rose\_ntoa, rose\_cmp - ROSE Address manipulation routines

## SYNOPSIS

```
#include <netrose/rose.h>

int rose_aton(const char *cp, char *inp);

char * rose_ntoa(rose_address *cp);

int rose_cmp(rose_address *a1, rose_address *a2);
```

## DESCRIPTION

The **rose\_aton**() converts the ROSE address *cp* from an ASCII representation into network format.

The **rose\_ntoa**() converts the ROSE address *cp* that is network format to a string that is the ASCII representation of the address.

The **rose\_cmp**() compares the two ROSE address *a1* and *a2* that are in network format.

## RETURN VALUE

The **rose\_ntoa**() and **rose\_aton**() functions return zero if all went OK, -1 if not.

The **rose\_cmp**() returns 0 if addresses pointer by *a1* and *a2* are identical, 1 otherwise.

## SEE ALSO

[**ax25**(4)](/ax25/4.md), [**netrom**(4)](/netrom/4.md), [**rose**(4)](/rose/4.md)
