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: ThingPlug_WiFi_Example_2 ThingPlug_Ethernet_Example ThingPlug_Ethernet_Example_temp_V2
Fork of GMMP_2 by
Network/TCPclient/Utility.cpp@0:7e575e5f88ec, 2015-08-09 (annotated)
- Committer:
- lesmin
- Date:
- Sun Aug 09 14:11:35 2015 +0000
- Revision:
- 0:7e575e5f88ec
forked from GMMP
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| lesmin | 0:7e575e5f88ec | 1 | #include "Utility.h" |
| lesmin | 0:7e575e5f88ec | 2 | |
| lesmin | 0:7e575e5f88ec | 3 | void delay(int ms) { |
| lesmin | 0:7e575e5f88ec | 4 | wait_ms(ms); |
| lesmin | 0:7e575e5f88ec | 5 | } |
| lesmin | 0:7e575e5f88ec | 6 | |
| lesmin | 0:7e575e5f88ec | 7 | char* strdup(const char* s) { |
| lesmin | 0:7e575e5f88ec | 8 | char* ret = (char*) malloc(strlen(s) + 1); |
| lesmin | 0:7e575e5f88ec | 9 | if (ret == NULL) { return ret;} |
| lesmin | 0:7e575e5f88ec | 10 | return strcpy(ret, s); |
| lesmin | 0:7e575e5f88ec | 11 | } |
