How to use malloc() and free() in PICC?

Started by Bruce.J Sam in Piclist15 years ago 3 replies

I have writed a simple program like this: /*  ******************************* */ #include void main(void) { ...

I have writed a simple program like this: /*  ******************************* */ #include void main(void) {  unsigned char *ptr;  ptr = (unsigned char *) malloc(sizeof(unsigned char));  free(ptr);