lib/stringbuf.c File Reference

#include "system.h"
#include "stringbuf.h"
#include "debug.h"

Go to the source code of this file.

Data Structures

struct  StringBufRec

Defines

#define BUF_CHUNK   1024

Functions

static int xisspace (int c)
 Locale insensitive isspace(3).
static void * _free (const void *p)
 Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.
StringBuf newStringBuf (void)
StringBuf freeStringBuf (StringBuf sb)
void truncStringBuf (StringBuf sb)
void stripTrailingBlanksStringBuf (StringBuf sb)
char * getStringBuf (StringBuf sb)
void appendStringBufAux (StringBuf sb, const char *s, int nl)


Detailed Description

Definition in file stringbuf.c.


Define Documentation

#define BUF_CHUNK   1024

Definition at line 10 of file stringbuf.c.

Referenced by appendStringBufAux(), and newStringBuf().


Function Documentation

static void* _free ( const void *  p  )  [inline, static]

Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.

Parameters:
p memory to free
Returns:
NULL always

Definition at line 34 of file stringbuf.c.

void appendStringBufAux ( StringBuf  sb,
const char *  s,
int  nl 
)

StringBuf freeStringBuf ( StringBuf  sb  ) 

char* getStringBuf ( StringBuf  sb  ) 

StringBuf newStringBuf ( void   ) 

void stripTrailingBlanksStringBuf ( StringBuf  sb  ) 

Definition at line 70 of file stringbuf.c.

References StringBufRec::allocated, StringBufRec::free, StringBufRec::tail, and xisspace().

Referenced by parseDescription(), and parseScript().

void truncStringBuf ( StringBuf  sb  ) 

static int xisspace ( int  c  )  [inline, static]


Generated on Fri Dec 12 13:02:11 2008 for rpm by  doxygen 1.5.6