int _stdcall AddS(char* DeviceIP) { char attr[1024]; char ip[20] = "192.168.0.234"; memset(attr, 0, sizeof(attr)); memcpy(attr, ip, sizeof(ip)); memcpy(DeviceIP, attr, sizeof(attr)) return 1; }