sync
This commit is contained in:
parent
50c8bafd9f
commit
ac06c97e30
820 changed files with 467502 additions and 386453 deletions
|
@ -1,12 +1,12 @@
|
|||
/* dynlist.c: Dynamic lists and buffers in C.
|
||||
* created 1999-Jan-06 15:34 jmk
|
||||
* autodate: 2000-Aug-28 01:29
|
||||
*
|
||||
*
|
||||
* by Jim Knoble <jmknoble@jmknoble.cx>
|
||||
* Copyright (C) 1999,2000 Jim Knoble
|
||||
*
|
||||
*
|
||||
* Disclaimer:
|
||||
*
|
||||
*
|
||||
* The software is provided "as is", without warranty of any kind,
|
||||
* express or implied, including but not limited to the warranties of
|
||||
* merchantability, fitness for a particular purpose and
|
||||
|
@ -14,7 +14,7 @@
|
|||
* claim, damages or other liability, whether in an action of
|
||||
* contract, tort or otherwise, arising from, out of or in connection
|
||||
* with the software or the use or other dealings in the software.
|
||||
*
|
||||
*
|
||||
* Permission to use, copy, modify, distribute, and sell this software
|
||||
* and its documentation for any purpose is hereby granted without
|
||||
* fee, provided that the above copyright notice appear in all copies
|
||||
|
@ -34,7 +34,7 @@
|
|||
int append_to_list(char ***list_ptr, int *list_len, int *i, char *item)
|
||||
{
|
||||
char **tmp_ptr;
|
||||
|
||||
|
||||
if (*i >= *list_len)
|
||||
{
|
||||
*list_len += LIST_CHUNK_SIZE;
|
||||
|
@ -58,7 +58,7 @@ int append_to_list(char ***list_ptr, int *list_len, int *i, char *item)
|
|||
int append_to_buf(char **buf, int *buflen, int *i, int c)
|
||||
{
|
||||
char *tmp_buf;
|
||||
|
||||
|
||||
if (*i >= *buflen)
|
||||
{
|
||||
*buflen += BUF_CHUNK_SIZE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue