ThingPlug GMMP library for mbed

Dependents:   ThingPlug_WiFi_Example

Network/TCPclient/Utility.cpp

Committer:
lesmin
Date:
2015-07-23
Revision:
0:32c20cfb2b30

File content as of revision 0:32c20cfb2b30:

#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);
}