summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Herlant <aerostitch@debian.org>2019-10-21 18:34:07 -0700
committerJoseph Herlant <aerostitch@debian.org>2019-10-21 18:34:07 -0700
commitee9ae0aacc6f50e09746f43664910a41e6ec4c73 (patch)
tree0d63d1aa49d06bc21d509311ea8375816e6f30c2
parent17aba2c2cd7fc56a6bc0bc3a3621d17e3a0d161a (diff)
downloadnavit-ee9ae0aacc6f50e09746f43664910a41e6ec4c73.tar.gz
Add doc for search_fix_spaces
-rw-r--r--navit/search.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/navit/search.c b/navit/search.c
index 1ede1c28a..6ca712581 100644
--- a/navit/search.c
+++ b/navit/search.c
@@ -135,6 +135,11 @@ int search_list_level(enum attr_type attr_type) {
}
}
+/**
+ * @brief replaces ',' and '/' by spaces and removes spaces from both end of the string
+ * @param pointer to the string to cleanup
+ * @return pointer to the cleaned up string
+ */
char *search_fix_spaces(const char *str) {
int i;
int len=strlen(str);