core/newlib/close_r.c File Reference
#include "sceptre.h"
#include "device.h"
Go to the source code of this file.
Functions |
int | _close_r (struct _reent *p_reent, int fd) |
Detailed Description
newlib - close.
Definition in file close_r.c.
Function Documentation
int _close_r |
( |
struct _reent * |
p_reent, |
|
|
int |
fd | |
|
) |
| | |
This function has to be implemented if you want to use fclose in your programs.
Close a file.
- Parameters:
-
| p_reent | Pointer to a structure that will receive the return value. |
| fd | Handle of file to close. |
- Returns:
- Zero on success, else -1.
Definition at line 19 of file close_r.c.