From 6df029a2f8bfe71a46348cb694273e99ad510aeb Mon Sep 17 00:00:00 2001 From: leitner Date: Thu, 28 Feb 2002 15:50:45 +0000 Subject: [PATCH] add comments --- CHANGES | 4 ++++ stralloc.h | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/CHANGES b/CHANGES index 3aad821..b4495c9 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +0.10: + add comment to stralloc.h that explains the structure (Markus Brischke) + 0.9: fmt_str did not check for out==NULL! Thanks, Uwe Ohse. Updated to buffer to fix read buffers. Thanks, David Lichteblau. @@ -6,6 +9,7 @@ add mmap man pages. update and add socket man pages. don't include str.h from fmt.h + document error signalling for the mmap functions. 0.8: BSD compatibility. diff --git a/stralloc.h b/stralloc.h index 1999fa4..a9a6790 100644 --- a/stralloc.h +++ b/stralloc.h @@ -3,6 +3,12 @@ #include +/* 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 { char* s; unsigned int len;