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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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!