![]() |
MySQL
8.0.23
Source Code Documentation
|
#include <assert.h>
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#include <strings.h>
#include <string.h>
#include <ctype.h>
#include <memcached/config_parser.h>
#include <memcached/util.h>
Macros | |
#define | bool char |
#define | false 0 |
#define | true 1 |
Functions | |
static int | read_config_file (const char *fname, struct config_item items[], FILE *error) |
static int | trim_copy (char *dest, size_t size, const char *src, const char **end, char stop) |
Copy a string and trim of leading and trailing white space characters. More... | |
int | parse_config (const char *str, struct config_item *items, FILE *error) |
#define bool char |
#define false 0 |
#define true 1 |
int parse_config | ( | const char * | str, |
struct config_item * | items, | ||
FILE * | error | ||
) |
|
static |
|
static |
Copy a string and trim of leading and trailing white space characters.
Allow the user to escape out the stop character by putting a backslash before the character.
dest | where to store the result |
size | size of the result buffer |
src | where to copy data from |
end | the last character parsed is returned here |
stop | the character to stop copying. |