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

char* pa_get_host_name ( char *  s,
size_t  l 
)

Return the current hostname in the specified buffer.

Definition at line 113 of file util.c.

                                          {

    pa_assert(s);
    pa_assert(l > 0);

    if (gethostname(s, l) < 0) {
        pa_log("gethostname(): %s", pa_cstrerror(errno));
        return NULL;
    }

    s[l-1] = 0;
    return s;
}


Generated by  Doxygen 1.6.0   Back to index