Flowdock
gethostname() public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
static VALUE
sock_gethostname(VALUE obj)
{
    char buf[1024];

    rb_secure(3);
    if (gethostname(buf, (int)sizeof buf - 1) < 0)
        rb_sys_fail("gethostname");

    buf[sizeof buf - 1] = '\0';
    return rb_str_new2(buf);
}
Register or log in to add new notes.