add comments

This commit is contained in:
leitner 2002-02-28 15:50:45 +00:00
parent 95c129c81a
commit 6df029a2f8
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,6 @@
0.10:
add comment to stralloc.h that explains the structure (Markus Brischke)
0.9: 0.9:
fmt_str did not check for out==NULL! Thanks, Uwe Ohse. fmt_str did not check for out==NULL! Thanks, Uwe Ohse.
Updated to buffer to fix read buffers. Thanks, David Lichteblau. Updated to buffer to fix read buffers. Thanks, David Lichteblau.
@ -6,6 +9,7 @@
add mmap man pages. add mmap man pages.
update and add socket man pages. update and add socket man pages.
don't include str.h from fmt.h don't include str.h from fmt.h
document error signalling for the mmap functions.
0.8: 0.8:
BSD compatibility. BSD compatibility.

View File

@ -3,6 +3,12 @@
#include <sys/cdefs.h> #include <sys/cdefs.h>
/* stralloc is the internal data structure all functions are working on.
* s is the string.
* len is the used length of the string.
* a is the allocated length of the string.
*/
typedef struct stralloc { typedef struct stralloc {
char* s; char* s;
unsigned int len; unsigned int len;