branch with improvemnts

Fork of M2XStreamClient by AT&T M2X Team

Utility.cpp

Committer:
jb8414
Date:
2014-02-12
Revision:
0:f479e4f4db0e

File content as of revision 0:f479e4f4db0e:

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