ThingPlug GMMP library for mbed
Dependents: ThingPlug_WiFi_Example
Diff: Network/TCPclient/Utility.cpp
- Revision:
- 0:32c20cfb2b30
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Network/TCPclient/Utility.cpp Thu Jul 23 00:55:15 2015 +0000 @@ -0,0 +1,11 @@ +#include "Utility.h" + +void delay(int ms) { + wait_ms(ms); +} + +char* strdup(const char* s) { + char* ret = (char*) malloc(strlen(s) + 1); + if (ret == NULL) { return ret;} + return strcpy(ret, s); +}