fetched changes from branch feature/GetComputerName

This commit is contained in:
Peter Honeder committed 2015-04-03 10:22:05 -07:00
1 parent beb5be9ffa
commit 70645d5bc1
4 files changed
+42 -1

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
#include "getcomputername.h"
#include <unistd.h>
int GetComputerName(char *name, size_t len)
{
int host = gethostname(name, len);
return host;
}
+9
View File
@@ -0,0 +1,9 @@
#pragma once
#include "pal.h"
PAL_BEGIN_EXTERNC
int GetComputerName(char * name, size_t len);
PAL_END_EXTERNC