[][src]Function avr_libc::fclose

pub unsafe extern "C" fn fclose(__stream: *mut FILE) -> i16

This function closes \c stream, and disallows and further IO to and from it.

When using fdevopen() to setup the stream, a call to fclose() is needed in order to free the internal resources allocated.

If the stream has been set up using fdev_setup_stream() or FDEV_SETUP_STREAM(), use fdev_close() instead.

It currently always returns 0 (for success).