fgets.c File Reference

Implements the functions: fgets. More...

Go to the source code of this file.

Functions

int getc (int)
 getc - get one character from a device
char * fgets (char *s, int n, int dev)
 Read a newline-terminated string from device (file) dev.


Detailed Description

Implements the functions: fgets.

Id
fgets.c 268 2007-07-31 13:45:57Z agember

Definition in file fgets.c.


Function Documentation

char* fgets ( char *  s,
int  n,
int  dev 
)

Read a newline-terminated string from device (file) dev.

Parameters:
*s buffer for result
n maximum read length
dev device to read from

Definition at line 18 of file fgets.c.

References getc(), and NULL.

Here is the call graph for this function:

int getc ( int  descrp  ) 

getc - get one character from a device

Parameters:
descrp definition of device from which to acquire character
Returns:
function to get character on success, SYSERR on failure

Definition at line 17 of file getc.c.


Generated on Wed Aug 27 06:08:16 2008 for Embedded XINU by  doxygen 1.5.5