From 0303960b906e9baee16cdfe078d8fcd6a019e402 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Sat, 30 Sep 2023 00:27:35 -0400 Subject: [PATCH] array.c: minor changes to comments --- libcitadel/lib/array.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libcitadel/lib/array.c b/libcitadel/lib/array.c index e6d26aa23..d43756ecb 100644 --- a/libcitadel/lib/array.c +++ b/libcitadel/lib/array.c @@ -1,8 +1,6 @@ -// This is a simple implementation of an elastic array class. It includes constructor and destructor -// methods, append and access methods, and that's about it. The memory allocation is very naive: whenever -// we are about to append beyond the size of the buffer, we double its size. +// This is a simple implementation of an elastic array class in pure C language. // -// Copyright (c) 2021-2022 by Art Cancro +// Copyright (c) 2021-2023 by Art Cancro // // This program is open source software. Use, duplication, or disclosure // is subject to the terms of the GNU General Public License, version 3. @@ -13,6 +11,7 @@ #include #include "libcitadel.h" + // Constructor for elastic array Array *array_new(size_t element_size) { Array *newarr = malloc(sizeof(Array)); -- 2.39.2