Home
Highly Reusable Software By activity User Interface Text Strings Math Processing
Stored Data
Communications
Hard World File System
|
#License - #Source code - #Example Use -
#include <librock/mstruct.h> char *librock_VSBDeleteAtPtr( struct librock_VSB_s *v, char *ptr, int len); char *librock_VSBInsertAtPtr( struct librock_VSB_s *v, char *ptr, const char *src,int len);
Typical use is
#ifdef librock_TYPICAL_USE_VSBInsertAtPtr #include <librock/mstruct.h> struct librock_VSB_s *v = librock_VSBalloc(); char *ptr; librock_VSBAppend(v,"This is a test.",15); ptr = memchr(v->buf,'.',v->inbuf); if (ptr) { ptr = librock_VSBDeleteAtPtr(v,ptr,1); ptr = librock_VSBInsertAtPtr(v,ptr,"!!",2); } printf("%s\n",librock_VSBsz(v)); librock_VSBfree(v); #endif
librock_assert() librock_VSBDelete() librock_VSBInsert()
Copyright 1998-2002 Forrest J. Cavalier III, http://www.mibsoftware.com Licensed under BSD-ish license, NO WARRANTY. Copies must retain this block. License text in <librock/license/librock.txt> librock_LIDESC_HC=12440211096131f5976d36be0cddca4cd9152e45
librock_VSBDeleteAtPtr passed tests in tvsbop (Unix/Linux/BSD: 2002/08/08 sys=FreeBSD using gcc)
librock_VSBDeleteAtPtr passed tests in tvsbop_main (WIN32: 2002/08/08 sys=NT 4.0 using MSVC)
librock_VSBInsertAtPtr passed tests in tvsbop (Unix/Linux/BSD: 2002/08/08 sys=FreeBSD using gcc)
librock_VSBInsertAtPtr passed tests in tvsbop_main (WIN32: 2002/08/08 sys=NT 4.0 using MSVC)
Verbatim copying and distribution of this generated page is permitted in any medium provided that no changes are made.
(The source of this manual page may be covered by a more permissive license which allows modifications.)
Want to help? We welcome comments, patches. -- Need help? Request paid support.