Michael Ammann / M2XStreamClient

Fork of M2XStreamClient by AT&T M2X Team

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Utility.cpp Source File

Utility.cpp

00001 #include "Utility.h"
00002 
00003 void delay(int ms) {
00004   wait_ms(ms);
00005 }
00006 
00007 char* strdup(const char* s) {
00008   char* ret = (char*) malloc(strlen(s) + 1);
00009   if (ret == NULL) { return ret;}
00010   return strcpy(ret, s);
00011 }