Logo Search packages:      
Sourcecode: avahi version File versions  Download package

char* avahi_normalize_name_strdup ( const char *  s )

Normalize a domain name into canonical form. This drops trailing dots and removes useless backslash escapes. avahi_free() the result!

Definition at line 219 of file domain.c.

References AVAHI_DOMAIN_NAME_MAX.

                                                 {
    char t[AVAHI_DOMAIN_NAME_MAX];
    assert(s);

    if (!(avahi_normalize_name(s, t, sizeof(t))))
        return NULL;

    return avahi_strdup(t);
}

Generated by  Doxygen 1.6.0   Back to index