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
Utility.cpp@0:f479e4f4db0e, 2014-02-12 (annotated)
- Committer:
- jb8414
- Date:
- Wed Feb 12 19:43:34 2014 +0000
- Revision:
- 0:f479e4f4db0e
initial commit from github revision b98a6d0
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| jb8414 | 0:f479e4f4db0e | 1 | #include "Utility.h" |
| jb8414 | 0:f479e4f4db0e | 2 | |
| jb8414 | 0:f479e4f4db0e | 3 | void delay(int ms) { |
| jb8414 | 0:f479e4f4db0e | 4 | wait_ms(ms); |
| jb8414 | 0:f479e4f4db0e | 5 | } |
| jb8414 | 0:f479e4f4db0e | 6 | |
| jb8414 | 0:f479e4f4db0e | 7 | char* strdup(const char* s) { |
| jb8414 | 0:f479e4f4db0e | 8 | char* ret = (char*) malloc(strlen(s) + 1); |
| jb8414 | 0:f479e4f4db0e | 9 | if (ret == NULL) { return ret;} |
| jb8414 | 0:f479e4f4db0e | 10 | return strcpy(ret, s); |
| jb8414 | 0:f479e4f4db0e | 11 | } |
