11.07.2015 Views

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Library FunctionsFREESynopsis#include void free (void * ptr)DescriptionThe free() function deallocates the block of memory at ptr, which must have been obtained from acall to malloc() or calloc().ExampleSee Also#include #include struct test {int a[20];} * ptr;/* Allocate space for 20 structures. */voidmain (void){ptr = calloc(20, sizeof(struct test));if(!ptr)printf("Failed\n");elsefree(ptr);}malloc(), calloc()146

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!