Lines Matching defs:sz
778 static bool wxGetHostNameInternal(wxChar *buf, int sz)
790 wxStrncpy(buf, wxSafeConvertMB2WX(uts.nodename), sz - 1);
791 buf[sz] = wxT('\0');
794 char cbuf[sz];
795 bool ok = gethostname(cbuf, sz) != -1;
798 wxStrncpy(buf, wxSafeConvertMB2WX(cbuf), sz - 1);
799 buf[sz] = wxT('\0');
815 bool wxGetHostName(wxChar *buf, int sz)
817 bool ok = wxGetHostNameInternal(buf, sz);
834 bool wxGetFullHostName(wxChar *buf, int sz)
836 bool ok = wxGetHostNameInternal(buf, sz);
852 wxStrncpy(buf, wxSafeConvertMB2WX(host->h_name), sz);
861 bool wxGetUserId(wxChar *buf, int sz)
868 wxStrncpy (buf, wxSafeConvertMB2WX(who->pw_name), sz - 1);
875 bool wxGetUserName(wxChar *buf, int sz)
886 wxStrncpy (buf, wxSafeConvertMB2WX(who->pw_gecos), sz - 1);
892 return wxGetUserId(buf, sz);