diff options
author | Antony Kellermann | 2018-02-25 22:40:57 -0500 |
---|---|---|
committer | Antony Kellermann | 2018-02-25 22:40:57 -0500 |
commit | 3e36a4fefbdfa9c3d14c4ebf0149a59df5461b2f (patch) | |
tree | bfdc0a3d122422112a56bfc4354fcc8cad63a0fe /api.h | |
parent | b660df2d52f21c187bdb93f0bf1e60e748ad6f42 (diff) | |
download | aur-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.h | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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 |