GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > VXW / V7-1-0

Constituent: vxw_flight_ini     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

fioLibX.c File Reference

Add the snprintf and vsnprintf functions to fioLib. More...

#include "fioLibX.h"

Include dependency graph for fioLibX.c:


Data Structures

struct  _fioFormatV_Prm
 Structure used to pass context through fioFormatV. More...

Functions

unsigned int fioFormatV_cb (char *buf, int siz, int prm)
 Format a message into the output buffer.
int snprintf (char *buf, int siz, const char *fmt,...)
 Implement the standard snprintf() routine with VxWorks tools.
int vsnprintf (char *buf, int siz, const char *fmt, va_list list)
 Implement the standard vsnprintf() routine with VxWorks tools.

Detailed Description

Add the snprintf and vsnprintf functions to fioLib.

CVS $Id: fioLibX.c,v 1.1 2003/08/27 18:45:03 apw Exp $

Author:
A.P.Waite - apw@slac.stanford.edu
The "standard" I/O routines snprintf and vsnprintf are mysteriously missing from the VxWorks distribution. They can however be built out of the tools VxWorks provides. These are the implementations.

Function Documentation

unsigned int fioFormatV_cb char *  buf,
int  siz,
int  prm
 

Format a message into the output buffer.

Parameters:
buf (in) Text source buffer provided by fioFormatV()
siz (in) The number of letters in the text source buffer
prm (in) Pass through parameter from snprintf
Callback routine for the VxWorks fioFormatV routine. Used to mimic the operation of the snprintf routine.

int snprintf char *  buf,
int  siz,
const char *  fmt,
  ...
 

Implement the standard snprintf() routine with VxWorks tools.

Parameters:
buf (in) Pointer to current location in output buffer
siz (in) Size remaining in output buffer
fmt (in) Formatting string
VxWorks does not provide a snprintf() entry point, but a substitute can be constructed using VxWorks provided tools. This is it.

int vsnprintf char *  buf,
int  siz,
const char *  fmt,
va_list  list
 

Implement the standard vsnprintf() routine with VxWorks tools.

Parameters:
buf (in) Pointer to current location in output buffer
siz (in) Size remaining in output buffer
fmt (in) Formatting string
list (in) Varaible argument list description
VxWorks does not provide a vsnprintf() entry point, but a substitute can be constructed using VxWorks provided tools. This is it.


Generated on Tue Dec 18 09:49:41 2007 by  doxygen 1.4.4