neocities.h

a C library for interacting with Neocities' API
git clone https://github.com/tanguyandreani/neocities.h
Log | Files | Refs | README | LICENSE

commit a40a6603f0a8d90db93111326f30160e5a4e8174
parent 748298af0c8b5698a093bf9ba366242b713f8cce
Author: Tanguy Andreani <dev@tanguy.space>
Date:   Thu, 21 Feb 2019 21:54:47 +0100

Fixed: ok time to do something else

Diffstat:
Mexample.c | 5+++--
Mneocities.h | 1+
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/example.c b/example.c @@ -9,13 +9,14 @@ int main(void) { - json_object * jobj; + json_object *jobj; int err; if (curl_global_init(CURL_GLOBAL_SSL) != 0) return NEOCITIES_ERR_CURL_GLOBAL_INIT; - if ((err = neocities_api(APIKEY, INFO, "lainzine", &jobj)) != NEOCITIES_OK) + if ((err = + neocities_api(APIKEY, INFO, "lainzine", &jobj)) != NEOCITIES_OK) return err; printf("%s\n", diff --git a/neocities.h b/neocities.h @@ -35,6 +35,7 @@ enum neocities_error { typedef struct Neocities_ { char *buf; + int size; int pos; } Neocities;