core/newlib/read_r.c File Reference

#include "sceptre.h"
#include "device.h"
#include <stdio.h>

Go to the source code of this file.

Functions

_ssize_t _read_r (struct _reent *p_reent, int fd, _PTR p_dst, size_t dst_size)

Detailed Description

newlib - read.

Definition in file read_r.c.


Function Documentation

_ssize_t _read_r ( struct _reent *  p_reent,
int  fd,
_PTR  p_dst,
size_t  dst_size 
)

This function has to be implemented if you want to use fread in your programs.

Parameters:
p_reent Pointer to a structure that will receive the return value.
fd Handle of file to read from.
p_dst Address to write the data to.
data_size Number of bytes to read.
Returns:
Number of bytes written on success, -1 on failure.

Definition at line 20 of file read_r.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Defines

Generated by  doxygen 1.6.2