Concord - C Discord API library
A Discord API wrapper library written in C
queriec.h
Go to the documentation of this file.
1#ifndef QUERIEC_H
2#define QUERIEC_H
3
4#define QUERIEC_ADDITIONAL_LETTERS_SIZE 2
5
6#define QUERIEC_ERROR_NOMEM -1
7#define QUERIEC_OK 0
8
9#include "attributes.h"
10
11struct queriec {
12 int state;
13 size_t size;
14 size_t offset;
15};
16
17void
18queriec_init(struct queriec *queriec, size_t size);
19
20int queriec_snprintf_add(struct queriec *queriec, char *query, const char key[], size_t keySize,
21 char buffer[], size_t bufferLen, const char *format, ...) PRINTF_LIKE(7, 8);
22
23int
24queriec_add(struct queriec *queriec, char *query, char key[], size_t keySize, char value[], size_t valueSize);
25
26#endif
#define PRINTF_LIKE(a, b)
Definition: attributes.h:4
void queriec_init(struct queriec *queriec, size_t size)
int queriec_snprintf_add(struct queriec *queriec, char *query, const char key[], size_t keySize, char buffer[], size_t bufferLen, const char *format,...)
int queriec_add(struct queriec *queriec, char *query, char key[], size_t keySize, char value[], size_t valueSize)
Definition: queriec.h:11
size_t offset
Definition: queriec.h:14
size_t size
Definition: queriec.h:13
int state
Definition: queriec.h:12