![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Heap test
Diff: main.cpp
- Revision:
- 0:598c0284f4df
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Jul 03 06:05:54 2012 +0000 @@ -0,0 +1,14 @@ +#include "mbed.h" +#include <rtos.h> +Serial serial(USBTX,USBRX); + +int main() { + + + char* p=(char*)malloc(4000); + if (p) { + serial.printf("OK\r"); + } else { + serial.printf("FAIL\r"); + } +}