aboutsummaryrefslogtreecommitdiff
path: root/src/gensvm_strutil.c
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2016-05-09 20:55:24 +0200
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2016-05-09 20:55:24 +0200
commit7c8a5e4b2a7cff7573b1a308daf19d2dbd558a9c (patch)
tree2c4774a63ec91d60931d822a7607a5011711c946 /src/gensvm_strutil.c
parentadd doc and test to phony (diff)
downloadgensvm-7c8a5e4b2a7cff7573b1a308daf19d2dbd558a9c.tar.gz
gensvm-7c8a5e4b2a7cff7573b1a308daf19d2dbd558a9c.zip
strip whitespaces
Diffstat (limited to 'src/gensvm_strutil.c')
-rw-r--r--src/gensvm_strutil.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gensvm_strutil.c b/src/gensvm_strutil.c
index aab441c..57e9399 100644
--- a/src/gensvm_strutil.c
+++ b/src/gensvm_strutil.c
@@ -38,7 +38,7 @@ bool str_endswith(const char *str, const char *suf)
{
size_t lensuf = strlen(suf),
lenstr = strlen(str);
- return lenstr < lensuf ? false : strncmp(str + lenstr - lensuf, suf,
+ return lenstr < lensuf ? false : strncmp(str + lenstr - lensuf, suf,
lensuf) == 0;
}
@@ -110,7 +110,7 @@ long get_fmt_long(FILE *fid, char *filename, const char *fmt)
*
* @details
* This function is used to read a line of doubles from a buffer. All the
- * doubles found are stored in a pre-allocated array.
+ * doubles found are stored in a pre-allocated array.
*
* @param[in] buffer a string buffer
* @param[in] offset an offset of the string to start looking for
@@ -131,7 +131,7 @@ long all_doubles_str(char *buffer, long offset, double *all_doubles)
if (start != end) {
all_doubles[i] = value;
i++;
- } else
+ } else
break;
start = end;
end = NULL;
@@ -145,7 +145,7 @@ long all_doubles_str(char *buffer, long offset, double *all_doubles)
*
* @details
* This function is used to read a line of longs from a buffer. All the
- * longs found are stored in a pre-allocated array.
+ * longs found are stored in a pre-allocated array.
*
* @param[in] buffer a string buffer
* @param[in] offset an offset of the string to start looking for