Main Page   File List   File Members   Related Pages  

frdi_util.c File Reference

utility methods More...

#include "frdi.h"

Functions

frdi_app * frdiAppCreate (int argc, char **argv, char **argenv)
void frdiAppDestroy (frdi_app *app)
char * frdiUtilCastVoidToChar (void *arg)
frdi_handler * frdiUtilHandlerString ()
char frdiFirstChar (frdi_message *message)
char * frdiSubtractStr (frdi_app *self, char *full, char *stem)
int frdiStartsWith (frdi_app *self, char *full, char *stem)
frdi_list * frdiSplitStr (frdi_app *self, char *text, char *pattern)
char * frdiJoinStr (frdi_app *self, char *prefix, char *suffix)
char * frdiIntStr (frdi_app *self, int num)
char * frdiCommandListDisplay (frdi_app *self, frdi_list *list)
void frdiDoublePrint (char *str)
void frdiPV (frdi_app *self, char *str)
void frdiPVF (frdi_app *self, char *format, void *arg)


Detailed Description

utility methods

Author:
Douglas Reay <douglas-legal@reay.org>
Warning:

Function Documentation

frdi_app* frdiAppCreate int    argc,
char **    argv,
char **    argenv
 

do everything

void frdiAppDestroy frdi_app *    app
 

these things come in pairs

char* frdiUtilCastVoidToChar void *    arg
 

cast a (void *) to a (char *)

frdi_handler* frdiUtilHandlerString  
 

a handler for frdiUtilCastVoidToChar

char frdiFirstChar frdi_message *    message
 

return the first char of the message

char* frdiSubtractStr frdi_app *    self,
char *    full,
char *    stem
 

return full - stem

int frdiStartsWith frdi_app *    self,
char *    full,
char *    stem
 

return 1 if full starts with stem, 0 else

frdi_list* frdiSplitStr frdi_app *    self,
char *    text,
char *    pattern
 

like perl's split

char* frdiJoinStr frdi_app *    self,
char *    prefix,
char *    suffix
 

join two strings together stringA = stringB + stringC

char* frdiIntStr frdi_app *    self,
int    num
 

converts an int safely into a string

char* frdiCommandListDisplay frdi_app *    self,
frdi_list *    list
 

display a command list (alternating string and int)

void frdiDoublePrint char *    str
 

print and flush to stdout print and flush to stderr

void frdiPV frdi_app *    self,
char *    str
 

print if verbose

void frdiPVF frdi_app *    self,
char *    format,
void *    arg
 

print if verbose using format


Generated on Wed Aug 18 13:24:09 2004 for Project Fairdice by doxygen1.2.18