Logo Search packages:      
Sourcecode: dbtcp version File versions  Download package

my_bstring.h

/*****************************************************************************
Modulo bstring.h 
(C) 2001 Giussani Cristian Fastflow Srl
Routine di manipolazione di stringhe con allocazione dinamica della
lunghezza.
Routine esportate:
*****************************************************************************/

#ifndef MY_BSTR_DYN
#define MY_BSTR_DYN

#include <define.h>

typedef struct _MY_BSTRING {
  char      *string;
  ulong increment;
  ulong length;
  ulong max_length;
} MY_BSTRING;

/* ---------------------------------------------------------------- Funzioni */
int bstring_init ( MY_BSTRING *stringa, ulong inizio, ulong incremento, char *valore, ulong val_len );
int bstring_append ( MY_BSTRING *stringa, char *altra, ulong length );
int bstring_free ( MY_BSTRING *stringa );
//int bstring_replace ( MY_BSTRING *string, char *find, char *replace );

#define bstring_clear(A)      (A)->length=0
#define bstring_length(A)       (A)->length
#define bstring_ptr(A)          (A)->string

#endif

Generated by  Doxygen 1.6.0   Back to index