From 18bde7391efb9c6bd6ea7846891ab5d16276a809 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Mon, 31 May 2021 06:11:22 -0700 Subject: initial import A bit messy and missing error handling in some places. --- quotes.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 quotes.h (limited to 'quotes.h') diff --git a/quotes.h b/quotes.h new file mode 100644 index 0000000..489189a --- /dev/null +++ b/quotes.h @@ -0,0 +1,15 @@ +#ifndef QUOTES_H +#define QUOTES_H + +struct quote { + char *symbol; + char *currency; + double price, multiplier, change_percent; +}; + +void quote_free(struct quote *q); + +struct quote *quote_find(struct quote **quotes, int n_quotes, + const char *symbol, const char *currency); + +#endif -- cgit v1.2.3-70-g09d2