17.02.2015 Views

CCS C Compiler Manual PCB / PCM / PCH

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

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

If fputs() is used then the specified stream is used where puts() defaults to<br />

STDOUT (the last USE RS232)<br />

Availability:<br />

Requires:<br />

All devices<br />

#USE RS232<br />

Examples:<br />

puts( " ----------- " );<br />

puts( " | HI | " );<br />

puts( " ----------- " );<br />

Example Files:<br />

Also See:<br />

None<br />

printf(), gets(), RS232 I/O Overview<br />

free( )<br />

Syntax:<br />

Parameters:<br />

Returns:<br />

Function:<br />

Availability:<br />

Requires:<br />

Examples:<br />

Example Files:<br />

Also See:<br />

free(ptr)<br />

ptr is a pointer earlier returned by the calloc, malloc or realloc.<br />

No value<br />

The free function causes the space pointed to by the ptr to be deallocated, that<br />

is made available for further allocation. If ptr is a null pointer, no action occurs.<br />

If the ptr does not match a pointer earlier returned by the calloc, malloc or<br />

realloc, or if the space has been deallocated by a call to free or realloc<br />

function, the behavior is undefined.<br />

All devices.<br />

#INCLUDE <br />

int * iptr;<br />

iptr=malloc(10);<br />

free(iptr)<br />

// iptr will be deallocated<br />

None<br />

realloc(), malloc(), calloc()<br />

184

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

Saved successfully!

Ooh no, something went wrong!