Logo Search packages:      
Sourcecode: pulseaudio version File versions

char* pa_get_host_name ( char *  s,
size_t  l 
)

Return the current hostname in the specified buffer.

Definition at line 114 of file util.c.

                                          {

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

    if (gethostname(s, l) < 0)
        return NULL;

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


Generated by  Doxygen 1.6.0   Back to index