gethostname on MingW

FX Coudert fxcoudert@gmail.com
Mon Apr 14 22:02:00 GMT 2008


Hello Anish,

Please send your queries to the GNU Fortran mailing-list at  
fortran@gcc.gnu.org rather than to individuals: you'll get better  
chances of response and information is stored and available for  
future users.

> I am using the MingW gcc compiler on a Windows XP machine and would  
> like to use the gethostname method in an application that I'm  
> updating.  I'm having some problems using it.  Do you have any  
> sample code that uses this function?

See the documentation, for example online at http://gcc.gnu.org/ 
onlinedocs/gfortran/ . You'll find what you're looking for the HOSTNM  
intrinsic subroutine: http://gcc.gnu.org/onlinedocs/gfortran/ 
HOSTNM.html .

>

FX

-- 
François-Xavier Coudert
http://www.homepages.ucl.ac.uk/~uccafco/



More information about the Fortran mailing list