Download NHK English news podcast automatically. XML Parser "spxml" is used. This application requires mpod mother board. See also http://mbed.org/users/geodenx/notebook/mpod/
Dependencies: BlinkLed HTTPClient EthernetInterface FatFileSystemCpp MSCFileSystem spxml mbed-rtos mbed
Fork of mpod_nhk_english by
Download NHK English news podcast automatically.
XML Parser "spxml" is used.
This application requires mpod mother board.
See also http://mbed.org/users/geodenx/notebook/mpod/
Diff: spxml/strdup.cpp
- Revision:
- 4:7dae52cf560f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/spxml/strdup.cpp Mon Aug 20 13:27:17 2012 +0000 @@ -0,0 +1,11 @@ +#include "strdup.h" +#include <stdlib.h> +#include <string.h> + +char *strdup(const char *s) +{ + char* dup = (char*)malloc(strlen(s) + 1); + if(dup != NULL) + strcpy(dup, s); + return dup; +}