-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathurl.h
37 lines (32 loc) · 783 Bytes
/
url.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef __url_h
#define __url_h
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include "logging.h"
#include "kraken_api.h"
#define TRUE 1
#define FALSE 0
/*!
* \file url.h
* \brief Inherits the functions which create the url strings.
*
*/
/*!
* \brief Creates uri-strings.
*
* \param kr_data = Pointer to a kraken_api structure which is not initialized yet.
*
* Returns 0 on success.
*/
int make_url(struct kraken_api **kr_data);
/*!
* \brief Copies or concatenates char arrays.
*
* \param dest = Pointer to the destination char array.
* \param source = Pointer to const char array which is added.
*
* Returns a char pointer to the area in memory where the result is found.
*/
char *to_url(char* dest, const char *source);
#endif