Hostname: Difference between revisions
Content added Content deleted
(Add Factor example) |
m (Changed over to works with template) |
||
Line 4:
=={{header|C}}==
{{works with|POSIX|.1}}
#include <limits.h>
#include <unistd.h>
Line 31 ⟶ 29:
=={{header|Perl}}==
{{works with|Perl|5.8.6}}
use Sys::Hostname;
Line 40 ⟶ 38:
=={{header|Python}}==
import socket
host = socket.gethostname()
|