aboutsummaryrefslogtreecommitdiff
path: root/mendeleev.c
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2022-12-13 21:29:30 +0200
committerIgor Pashev <pashev.igor@gmail.com>2022-12-13 21:31:37 +0200
commit7031a9ea16438ec8546fc043999dfbc8410d0fee (patch)
treedcacd809130a4536da31ee582c71856824cacf40 /mendeleev.c
parent1ac772400a6a3aea8d006ac46337440600017e4b (diff)
downloadmendeleev-7031a9ea16438ec8546fc043999dfbc8410d0fee.tar.gz
Rename divide to split
Diffstat (limited to 'mendeleev.c')
-rw-r--r--mendeleev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mendeleev.c b/mendeleev.c
index 2ab20e1..770d37b 100644
--- a/mendeleev.c
+++ b/mendeleev.c
@@ -63,7 +63,7 @@ search (size_t *start, size_t *len, size_t shift, char c)
}
static element_t *
-divide (const char *tail)
+split (const char *tail)
{
element_t *head = NULL;
element_t *last = NULL;
@@ -117,7 +117,7 @@ divide (const char *tail)
static element_t *
explode (const char *word)
{
- element_t *root = divide (word);
+ element_t *root = split (word);
for (element_t * el = root; el; el = el->sibs)
el->next = *el->tail ? explode (el->tail) : NULL;
return root;