aboutsummaryrefslogtreecommitdiff
path: root/src/str.c
Commit message (Collapse)AuthorAgeFilesLines
* Refactor directory structureJoseph Hunkeler2024-10-141-654/+0
| | | | | * Move core library sources into src/lib/core * Move command-line programs into src/cli
* str.c: fix leakJoseph Hunkeler2024-10-091-2/+3
|
* str.c: fix realloc(s)Joseph Hunkeler2024-10-091-1/+1
|
* Replace strncpy with a raw loops to populate the delim_* arraysJoseph Hunkeler2024-09-201-5/+19
| | | | * I wasn't able to finesse the nelem argument in a way that prevents the compiler(s) from throwing warnings
* Rebrand OhMyCal (OMC) as STASIS (#7)Joseph Hunkeler2024-06-211-6/+6
|
* Unit tests (#6)Joseph Hunkeler2024-06-201-103/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Initial commit of unit tests [WIP] * Address shortcomings and bugs flushed out by unit tests * Enable unit testing in CI workflow * Enable verbose ctests * Handle lack of __FILE_NAME__ define * Only podman support `run --arch` argument * Skip docker build testing if CI system cannot pull an image * Remove errant call to puts() * Identify local repo user * Fix missing xmllint * NULL terminate arrays * Fix filename assignment in is_url mode * Break loop when expected lines are exhausted * strcmp_array expects NULL terminated array. Iterating by size in this case passes NULL to strcmp leading to an invalid read * Remove debug printf statements * Disable a few warnings for tests * Workaround for ctest junit xml truncation * Update checkout@v4 * Prevent false-positive result * Return zero on error * Fix strlist_remove function * Value argument can be constant * Fix test to match changes to startswith and endswith * Add test_ini.c * Fix redaction code to accept NULL pointers in array * And let the caller specify the length of the array of strings to redact. * Redactions now occur directly on authentication strings rather than their command line arguments * Fix BUILD_TESTING_DEBUG * Adds missing -D argument
* Documentation updateJoseph Hunkeler2024-05-201-177/+6
|
* Fix condition that ruined sptr.Joseph Hunkeler2024-03-241-6/+8
| | | | * Pass temporary pointer to strsep
* Bugfix in split()Joseph Hunkeler2024-03-221-4/+0
| | | | * On error sptr is not longer indirectly free'd.
* Remove split_free() functionJoseph Hunkeler2024-03-221-12/+1
|
* Use do/while in guard_* macros to make them behave more like functionsJoseph Hunkeler2024-03-101-11/+11
|
* guard_free() all pointersJoseph Hunkeler2023-12-101-13/+13
|
* Prevent lstrip() will remove leading whitespace and new lines, but NOT if ↵Joseph Hunkeler2023-11-201-3/+8
| | | | | | the line consists of one whitepace or new line character * Document strsort()
* Rebrand for the last timeJoseph Hunkeler2023-11-201-4/+4
| | | | | * Shorten OHMYCAL to OMC * Rename ohmycal.h to omc.h
* Rebrand SPM to OHMYCALJoseph Hunkeler2023-11-031-4/+4
|
* Fixes maximum number of tokens parsed by split() functionJoseph Hunkeler2023-10-311-9/+12
| | | | * Resets the string pointer before returning to avoid freeing the wrong address in memory
* Initial commitJoseph Hunkeler2023-10-261-0/+867