Date: Sun, 10 Jun 2001 11:16:11 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Luiz Rafael Culik Guimaraes cc: djgpp AT delorie DOT com Subject: Re: NETNAME and DJGPP In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sat, 9 Jun 2001, Luiz Rafael Culik Guimaraes wrote: > How to return the current Network name under DJGPP. For win32 i use the > GetComputerName() API , but i need to know also in Dos mode The DJGPP library includes a function `gethostname' which will return the machine's network name if network software is installed. `gethostname' is available on many Unix and GNU/Linux systems as well.