GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > RIM / V2-2-0

Constituent: lrd_parser     Tag: sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

lString.c File Reference

Creation and initialisation of the lString structure. More...

#include "error_p.h"
#include "lString_p.h"
#include "PBS/MBA.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>

Include dependency graph for lString.c:


Functions

lStringnewlString (const char *fmt,...)
 Create a lString from fmt and the subsequent arguments.
char * newString (const char *fmt,...)
 Create a string from fmt and the subsequent arguments.
size_t getStrLen (const char *fmt, va_list ap)
 Reads the format string and calculates the total size of the string after completing the insertions.
void copyStr (char *dest, const char *fmt, va_list ap)
 Read the format string and fill dest accordingly.
lStringappendString (lString *os, const char *fmt,...)
 Combine an existing lString and additional elements into a new string.

Detailed Description

Creation and initialisation of the lString structure.

Author:
James Swain & Owen Saxton
Id
lString.c,v 1.2 2007/03/16 21:49:48 saxton Exp

Function Documentation

lString* appendString lString os,
const char *  fmt,
  ...
 

Combine an existing lString and additional elements into a new string.

Parameters:
os Old string to append to
fmt Format of the additional string
Returns:
A new string which is the concaternation of the old string and the additional elements

void copyStr char *  dest,
const char *  fmt,
va_list  ap
 

Read the format string and fill dest accordingly.

Parameters:
dest Destination string
fmt Format string
ap Variable length list of arguments

size_t getStrLen const char *  fmt,
va_list  ap
 

Reads the format string and calculates the total size of the string after completing the insertions.

Parameters:
fmt Format string
ap Variable length list of arguments
Returns:
Size of the complete string

lString* newlString const char *  fmt,
  ...
 

Create a lString from fmt and the subsequent arguments.

Parameters:
fmt Format of the string to create
Returns:
Ptr to initialised lString

char* newString const char *  fmt,
  ...
 

Create a string from fmt and the subsequent arguments.

Parameters:
fmt Format of the string to create
Returns:
Ptr to initialised string


Generated on Sat Dec 22 02:48:33 2007 by  doxygen 1.4.4