projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
03d05b1
)
array.c: minor changes to comments
author
Art Cancro
<ajc@citadel.org>
Sat, 30 Sep 2023 04:27:35 +0000
(
00:27
-0400)
committer
Art Cancro
<ajc@citadel.org>
Sat, 30 Sep 2023 04:27:35 +0000
(
00:27
-0400)
libcitadel/lib/array.c
patch
|
blob
|
history
diff --git
a/libcitadel/lib/array.c
b/libcitadel/lib/array.c
index e6d26aa231670fcdd6a7c12ef2193b84619a0363..d43756ecb18339ec7c8550bac32555a75a75f7d3 100644
(file)
--- 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-202
2
by Art Cancro
+// Copyright (c) 2021-202
3
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.
//
// 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 <stdio.h>
#include "libcitadel.h"
#include <stdio.h>
#include "libcitadel.h"
+
// Constructor for elastic array
Array *array_new(size_t element_size) {
Array *newarr = malloc(sizeof(Array));
// Constructor for elastic array
Array *array_new(size_t element_size) {
Array *newarr = malloc(sizeof(Array));