Concord - C Discord API library
A Discord API wrapper library written in C
queriec.h File Reference
#include "attributes.h"
Include dependency graph for queriec.h:

Go to the source code of this file.

Data Structures

struct  queriec
 

Macros

#define QUERIEC_ADDITIONAL_LETTERS_SIZE   2
 
#define QUERIEC_ERROR_NOMEM   -1
 
#define QUERIEC_OK   0
 

Functions

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)
 

Macro Definition Documentation

◆ QUERIEC_ADDITIONAL_LETTERS_SIZE

#define QUERIEC_ADDITIONAL_LETTERS_SIZE   2

◆ QUERIEC_ERROR_NOMEM

#define QUERIEC_ERROR_NOMEM   -1

◆ QUERIEC_OK

#define QUERIEC_OK   0

Function Documentation

◆ queriec_init()

void queriec_init ( struct queriec queriec,
size_t  size 
)

◆ queriec_snprintf_add()

int queriec_snprintf_add ( struct queriec queriec,
char *  query,
const char  key[],
size_t  keySize,
char  buffer[],
size_t  bufferLen,
const char *  format,
  ... 
)

◆ queriec_add()

int queriec_add ( struct queriec queriec,
char *  query,
char  key[],
size_t  keySize,
char  value[],
size_t  valueSize 
)