Re: NSPR eqivalent to gethostname()?
"Wan-Teh Chang" <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.nspr |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Jun 20, 2008 at 2:13 AM, Joachim Ziegler <[email protected]> wrote: > Hello, > > how do I find out the name(s) of my local host? Hi, Call PR_GetSystemInfo(PR_SI_HOSTNAME, buf, buflen) or PR_GetSystemInfo(PR_SI_HOSTNAME_UNTRUNCATED, buf, buflen) http://www.mozilla.org/projects/nspr/reference/html/prsystem.html http://lxr.mozilla.org/nspr/source/nsprpub/pr/include/prsystem.h#71 Wan-Teh