Gustavo Ramirez
/
eje13
este programa es para botones
main.cpp
- Committer:
- tony63
- Date:
- 2015-03-13
- Revision:
- 1:04f4905dd2ae
- Parent:
- 0:68deb959efd5
File content as of revision 1:04f4905dd2ae:
#include "mbed.h" // Function which takes a pointer to a char* buffer. void BufferRead(char* pBuffer) { * pBuffer = 'h'; } int main() { void* pvBuffer = malloc(42); // Calling BufferRead with a void* pointer instead of a char* pointer. BufferRead((char*)pvBuffer); //BufferRead(pvBuffer); // *** This is the line which generates the error. *** return 0; }