Anonymous user
Hostname: Difference between revisions
add E example
(Scheme) |
(add E example) |
||
Line 40:
=={{header|C sharp|C#}}==
<lang csharp>System.Net.Dns.GetHostName();</lang>
=={{header|E}}==
<lang e>makeCommand("hostname")()[0].trim()</lang>
Not exactly a good way to do it. A better way ought to be introduced along with a proper socket interface. [[Category:E examples needing attention]]
=={{header|Factor}}==
|