From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,6a4ce70b296a0be5,start X-Google-Attributes: gid10d4db,public X-Google-ArrivalTime: 2003-03-04 22:15:04 PST Return-Path: Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cola.stump.algebra.com!robomod!not-for-mail X-COLA-Policy: http://stump.algebra.com/~cola X-COLA-Info-1: Send submissions to cola@stump.algebra.com X-COLA-Info-2: Send complaints to cola-admin@stump.algebra.com X-Comment: moderators do not necessarily agree or disagree with this article. X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov) Date: Wed, 5 Mar 2003 00:10:18 CST Subject: Vstr 1.0.3 (string library in C) From: James Antill Content-Type: text/plain; charset=US-ASCII Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Honest Recruiter) MIME-Version: 1.0 Newsgroups: comp.os.linux.announce X-Auth: PGPMoose V1.1 PGP comp.os.linux.announce iQBVAwUAPmWUzSFvAtx2nXvNAQFKYgIAtk8wySRbOufyorjYla0omjM8TWuKIKQj Ut2vht2v/SdnD+B0Gw4O48M61gzh5l66xWOKXynNkCjSvy52WetCng== =i9KK X-Spam-Status: No, hits=0.0 required=10.0 tests=MISSING_HEADERS,SIGNATURE_LONG_SPARSE,SPAM_PHRASE_00_01, USER_AGENT,USER_AGENT_GNUS_UA version=2.43 X-Spam-Level: Xref: archiver1.google.com comp.os.linux.announce:3062 About ----- Vstr is a string library designed for network communication, but applicable in a number of other areas. It works on the idea of separate nodes of information, and the length/ptr model and not the termination model of "C strings". It does dynamic resizing of strings as you add/delete data. It can also do automatic referencing for mmap() areas of memory, and includes a portable version of a printf-like function (which is ISO 9899:1999 compliant, and includes support for i18n parameter position modifiers). Other convenience functions are also included, so you can: easily split data from a string into sections (similar to perl's split function); and get string data from a socket or put data to a socket. Main Changes ------------ . Expanded the testsuite to check some less traveled code paths, found a few errors. . Fixed the examples to work on 0 length proc files. . Added assert() calls into the inline functions (only when compiled in debug mode) . Got some speedups via. builtin_constant_p(). Download URLs ------------- Overview: http://www.and.org/vstr/ String API comparison: http://www.and.org/vstr/comparison.html Printf comparison: http://www.and.org/vstr/printf_comparison.html ChangeLog: http://www.and.org/vstr/ChangeLog Tar balls --------- http://www.and.org/vstr/1.0.3/vstr-1.0.3.tar.gz ftp://ftp.and.org/pub/james/vstr/1.0.3/vstr-1.0.3.tar.gz http://www.and.org/vstr/1.0.3/vstr-1.0.3.tar.bz2 ftp://ftp.and.org/pub/james/vstr/1.0.3/vstr-1.0.3.tar.bz2 apt-rpm repository ------------------ rpm ftp://ftp.and.org/apt redhat/8.0/en/i386 extras rpm-src ftp://ftp.and.org/apt redhat/8.0/en/i386 extras RPMs ---- http://www.and.org/vstr/rpms/ ftp://ftp.and.org/pub/james/vstr/rpms/ PAD description --------------- http://www.and.org/vstr/vstr_pad.xml -- James Antill -- james@and.org Tip #1 for finding bugs in your C source code... egrep "strncpy|char[\t ]+.+\[[0-9]+\]" *.[ch] ########################################################################## # Send submissions for comp.os.linux.announce to: cola@stump.algebra.com # # PLEASE remember a short description of the software and the LOCATION. # # This group is archived at http://stump.algebra.com/~cola/ # ##########################################################################