summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-07-14 14:50:08 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2020-07-14 14:50:08 -0400
commitaee7f7551139af26cc15fe593de8825af77dea4f (patch)
tree13dc06a2e7288e2ae6e265ca6712a22fcadf0e27 /misc.c
parent8b2384c94e2f5834f3b8929f982a19edde1503d9 (diff)
formatting cleanup
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/misc.c b/misc.c
index dc6076e..8354b69 100644
--- a/misc.c
+++ b/misc.c
@@ -1,4 +1,4 @@
-/*
+/*
Miscellaneous C functions which toc uses.
This is free and unencumbered software released into the public domain.
@@ -24,7 +24,7 @@ For more information, please refer to <http://unlicense.org/>
*/
-/*
+/*
A better alternative to strncpy. dest is guaranteed to be a null-terminated string
after this function is run.
Returns the number of characters copied to dest, not including the null character.
@@ -52,7 +52,7 @@ static char *str_dup(const char *s) {
size_t bufsz = strlen(s)+1;
char *ret = err_malloc(bufsz);
memcpy(ret, s, bufsz);
- return ret;
+ return ret;
}
static char *cstr(const char *str, size_t len) {