aboutsummaryrefslogtreecommitdiff
path: root/src/str.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-06-21 12:36:55 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-06-21 12:48:40 -0400
commit7d675a70bf92bd1606f77fae01c6e56afdcee5ef (patch)
tree91cf7cb955798ad40718341172b0a8ffbc59a1f2 /src/str.c
parent931ee28eb9c5b5e3c2b0d3008f5f65d810dc9b0c (diff)
downloadstasis-7d675a70bf92bd1606f77fae01c6e56afdcee5ef.tar.gz
Rebrand OhMyCal (OMC) as STASIS
Diffstat (limited to 'src/str.c')
-rw-r--r--src/str.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/str.c b/src/str.c
index 16088b6..6afbf73 100644
--- a/src/str.c
+++ b/src/str.c
@@ -115,7 +115,7 @@ char** split(char *_sptr, const char* delim, size_t max)
pos = token - sptr;
break;
}
- result[i] = calloc(OMC_BUFSIZ, sizeof(char));
+ result[i] = calloc(STASIS_BUFSIZ, sizeof(char));
if (!result[i]) {
return NULL;
}
@@ -125,7 +125,7 @@ char** split(char *_sptr, const char* delim, size_t max)
// pos is non-zero when maximum split is reached
if (pos) {
// append the remaining string contents to array
- result[i] = calloc(OMC_BUFSIZ, sizeof(char));
+ result[i] = calloc(STASIS_BUFSIZ, sizeof(char));
if (!result[i]) {
return NULL;
}
@@ -319,13 +319,13 @@ void strsort(char **arr, unsigned int sort_mode) {
// Default mode is alphabetic sort
compar fn = _strsort_alpha_compare;
- if (sort_mode == OMC_SORT_LEN_DESCENDING) {
+ if (sort_mode == STASIS_SORT_LEN_DESCENDING) {
fn = _strsort_dsc_compare;
- } else if (sort_mode == OMC_SORT_LEN_ASCENDING) {
+ } else if (sort_mode == STASIS_SORT_LEN_ASCENDING) {
fn = _strsort_asc_compare;
- } else if (sort_mode == OMC_SORT_ALPHA) {
+ } else if (sort_mode == STASIS_SORT_ALPHA) {
fn = _strsort_alpha_compare; // ^ still selectable though ^
- } else if (sort_mode == OMC_SORT_NUMERIC) {
+ } else if (sort_mode == STASIS_SORT_NUMERIC) {
fn = _strsort_numeric_compare;
}