aboutsummarylogtreecommitdiffstats
path: root/api.h
diff options
context:
space:
mode:
authorAntony Kellermann2018-02-25 22:40:57 -0500
committerAntony Kellermann2018-02-25 22:40:57 -0500
commit3e36a4fefbdfa9c3d14c4ebf0149a59df5461b2f (patch)
treebfdc0a3d122422112a56bfc4354fcc8cad63a0fe /api.h
parentb660df2d52f21c187bdb93f0bf1e60e748ad6f42 (diff)
downloadaur-3e36a4fefbdfa9c3d14c4ebf0149a59df5461b2f.tar.gz
Modified strip_char to strip in place instead of returning a new string
Diffstat (limited to 'api.h')
-rw-r--r--api.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/api.h b/api.h
index cd1b4be60431..ebb3fa976f6b 100644
--- a/api.h
+++ b/api.h
@@ -130,6 +130,12 @@ void api_print_info(const char* ticker_name_string);
*/
Info* iex_get_info(const char* ticker_name_string);
+/**
+ * Returns a pointer to an Info object containing info pertaining
+ * to the given symbol
+ * @param ticker_name_string mutf/otc symbol
+ * @return Info object
+ */
Info* morningstar_get_info(const char* ticker_name_string);
/**
@@ -148,12 +154,12 @@ Info* coinmarketcap_get_info(const char* ticker_name_string);
char* google_shorten_link(const char* url_string);
/**
- * Returns a string stripped of the given char
+ * Returns the input string, stripped of the given char
* @param string the string to strip the char from
* @param c the char to strip
- * @return the stripped string
+ * @return input string
*/
-char* strip_char(const char* string, char c);
+char* strip_char(char* string, char c);
/**
* Destroys String object and frees memory