fprintf.c File Reference

Implements the functions: fprintf. More...

#include <stdarg.h>

Include dependency graph for fprintf.c:

Go to the source code of this file.

Functions

void _doprnt (char *, va_list, int(*)(int, int), int)
 Format and write output using 'func' to write characters.
int fprintf (int dev, char *fmt,...)
 Print a formatted message on specified device (file).


Detailed Description

Implements the functions: fprintf.

Id
fprintf.c 1521 2008-08-27 21:51:17Z mschul

Definition in file fprintf.c.


Function Documentation

void _doprnt ( char *  fmt,
va_list  ap,
int(*)(int, int)  func,
int  farg 
)

Format and write output using 'func' to write characters.

Formatted output.

(Patched for Sun3 by Shawn Ostermann.) All arguments passed as 4 bytes, long==int.

Parameters:
*fmt format string
ap list of values
*func character output function
farg argument for character output function

Definition at line 28 of file doprnt.c.

int fprintf ( int  dev,
char *  fmt,
  ... 
)

Print a formatted message on specified device (file).

Parameters:
dev device to write to
*fmt format string
Returns:
0 if the output was printed sucessfully, -1 if an error occured

Definition at line 19 of file fprintf.c.

References _doprnt(), and putc().

Referenced by hexdump(), hexdump_print(), shell(), test_libStdio(), xsh_clear(), xsh_ethstat(), xsh_exit(), xsh_gpiostat(), xsh_help(), xsh_kill(), xsh_led(), xsh_memdump(), xsh_memstat(), xsh_nvram(), xsh_nvramHelp(), xsh_nvramList(), xsh_ps(), xsh_reset(), xsh_sleep(), xsh_uartstat(), and xsh_vlanstat().

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on Fri Sep 19 13:40:29 2008 for Embedded XINU by  doxygen 1.5.6