Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: WNCInterface_M2Xdemo ATT_WNCInterface_Info WNCInterface_HTTP_example Public_IoT_M2X_Cellular_Demo
Fork of M2XStreamClient by
Diff: Utility.cpp
- Revision:
- 5:ea68c8980ad8
diff -r 000000000000 -r ea68c8980ad8 Utility.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Utility.cpp Thu Oct 24 12:22:33 2013 +0000
@@ -0,0 +1,12 @@
+#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);
+}
+
