copy lib

Fork of GMMP by SKTelecom_ThingPlug

Committer:
lesmin
Date:
Thu Aug 13 07:04:29 2015 +0000
Revision:
5:bb6c1ee1d5f0
Parent:
0:32c20cfb2b30
added NTP error return

Who changed what in which revision?

UserRevisionLine numberNew contents of line
lesmin 0:32c20cfb2b30 1 #include "Utility.h"
lesmin 0:32c20cfb2b30 2
lesmin 0:32c20cfb2b30 3 void delay(int ms) {
lesmin 0:32c20cfb2b30 4 wait_ms(ms);
lesmin 0:32c20cfb2b30 5 }
lesmin 0:32c20cfb2b30 6
lesmin 0:32c20cfb2b30 7 char* strdup(const char* s) {
lesmin 0:32c20cfb2b30 8 char* ret = (char*) malloc(strlen(s) + 1);
lesmin 0:32c20cfb2b30 9 if (ret == NULL) { return ret;}
lesmin 0:32c20cfb2b30 10 return strcpy(ret, s);
lesmin 0:32c20cfb2b30 11 }