Modified for W5500 Ethernet initialize

Fork of GMMP_mbed by SKTelecom_ThingPlug

Network/TCPclient/Utility.cpp

Committer:
hkjung
Date:
2015-08-12
Revision:
3:6b4536e1962f
Parent:
0:7e575e5f88ec

File content as of revision 3:6b4536e1962f:

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