diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-07-13 18:21:33 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-07-13 18:21:33 +0800 |
commit | 1432293735a0a8e480939816c26b20335d636a42 (patch) | |
tree | a98e1cfb3ab8b8b61c335af52e3d62881196b5f5 | |
parent | fec4320bcc644664746f1c67b70144c616189d4b (diff) |
Debugs Anteraja response
-rw-r--r-- | anteraja.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,6 @@ +#ifdef DEBUG +#include <stdio.h> +#endif #include "shipping.h" #include "handler.h" @@ -36,6 +39,10 @@ size_t anteraja_services_handle(const char *contents, size_t size, size_t nmemb, struct pikul_services **services) { size_t realsize = size * nmemb; +#ifdef DEBUG + ((char *)contents)[realsize] = '\0'; + fprintf(stderr, "%s\n", contents); +#endif handle_services(contents, realsize, status_trail, (const char *[]){ "content", "services", |