diff options
author | Antony Kellermann | 2018-02-26 10:19:10 -0500 |
---|---|---|
committer | Antony Kellermann | 2018-02-26 10:19:10 -0500 |
commit | ef7e041ff8170be8ed837fe8ba4378eed687463a (patch) | |
tree | bf502b9bfa9a5f2f2b00c4db7efde826cecc567c /api.h | |
parent | 3e36a4fefbdfa9c3d14c4ebf0149a59df5461b2f (diff) | |
download | aur-ef7e041ff8170be8ed837fe8ba4378eed687463a.tar.gz |
Moved string manipulation functions to new c/h files, added them to Makefile, included header in other files
Diffstat (limited to 'api.h')
-rw-r--r-- | api.h | 29 |
1 files changed, 1 insertions, 28 deletions
@@ -17,13 +17,7 @@ #include <stddef.h> #include <curl/curl.h> #include <json-c/json_tokener.h> - -struct string { - char* data; - size_t len; -}; - -typedef struct string String; +#include "string-tick.h" struct info { char* name; // Name of security (ex. Apple Inc.) @@ -40,13 +34,6 @@ typedef struct info Info; typedef struct json_object Json; /** - * Creates and returns a STRING - * object with size 1 and no data - * @return STRING object - */ -String* api_string_init(void); - -/** * Creates and returns an Info object * @return Info object */ @@ -154,20 +141,6 @@ Info* coinmarketcap_get_info(const char* ticker_name_string); char* google_shorten_link(const char* url_string); /** - * 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 input string - */ -char* strip_char(char* string, char c); - -/** - * Destroys String object and frees memory - * @param phString the String to destroy - */ -void api_string_destroy(String** phString); - -/** * Destroys Info object and frees memory * @param phInfo the Info to destroy */ |