Mercurial > noffle
view src/dynamicstring.h @ 225:9fb4b7d7e64b noffle
[svn] * docs/Makefile.in: Add testing.txt to documents.
* NEWS: Updates for 1.1.1 release.
* configure.in: Change version to 1.1.1. Additional decoration to the
version is slowing down my release and RPM building. All Makefile.in
have been regenerated as has configure.
* packages/redhat/noffle.spec: Change version to 1.1.1.
* packages/.cvsignore,packages/Makefile.am,packages/redhat/.cvsignore,
packages/redhat/Makefile.am: Add sufficient makefiles for noffle.spec
and noffle-expire to the included in the tarball generated by 'make dist'.
author | bears |
---|---|
date | Sun, 09 Dec 2001 15:07:14 +0000 |
parents | e612b263934f |
children |
line wrap: on
line source
/* dynamicstring.h String utilities $Id: dynamicstring.h 65 2000-05-12 16:52:41Z enz $ */ #ifndef DYNAMICSTRING_H #define DYNAMICSTRING_H #if HAVE_CONFIG_H #include <config.h> #endif #include <sys/types.h> /* A dynamically growing string */ struct DynStr; typedef struct DynStr DynStr; /* Create new DynStr with given capacity */ DynStr * new_DynStr( int reserve ); /* Delete DynStr */ void del_DynStr( DynStr *self ); /* Return DynStr's length */ int DynStr_len( const DynStr *self ); /* Return DynStr's content ptr */ const char * DynStr_str( const DynStr *self ); /* append C-string to DynStr */ void DynStr_app( DynStr *self, const char *s ); /* append a DynStr to DynStr */ void DynStr_appDynStr( DynStr *self, const DynStr *s ); /* Append C-string + newline to DynStr */ void DynStr_appLn( DynStr *self, const char *s ); /* Append a maximum of n characters from C-string s to DynStr self */ void DynStr_appN( DynStr *self, const char *s, int n ); /* Truncate content of DynString to zero length */ void DynStr_clear( DynStr *self ); #endif