|
ekg2
GIT master
|
#include <errno.h>#include <stdio.h>#include <stdlib.h>#include <stdarg.h>#include <string.h>#include "dynstuff.h"#include "dynstuff_inline.h"#include "xmalloc.h"
Funkcje | |
| __attribute__ ((visibility("hidden"))) | |
| void * | list_add_sorted3 (list_t *list, list_t new, int(*comparision)(void *, void *)) |
| void * | list_add3 (list_t *list, list_t new) |
| int | list_count (list_t list) |
| void * | list_remove3 (list_t *list, list_t elem, void(*func)(list_t data)) |
| int | list_destroy3 (list_t list, void(*func)(void *)) |
| static void | string_realloc (string_t s, int count) |
| int | string_append_c (string_t s, char c) |
| int | string_append (string_t s, const char *str) |
| string_t | string_init (const char *value) |
| char * | string_free (string_t s, int free_string) |
| const char * | ekg_itoa (long int i) |
| char ** | array_make (const char *string, const char *sep, int max, int trim, int quotes) |
| int | array_count (char **array) |
| int | array_add (char ***array, char *string) |
| int | array_add_check (char ***array, char *string, int casesensitive) |
| char * | array_join (char **array, const char *sep) |
| int | array_item_contains (char **array, const char *string, int casesensitive) |
| void | array_free (char **array) |
| static int | private_data_cmp (private_data_t *item1, private_data_t *item2) |
| static void | private_data_free (private_data_t *item) |
| static void | private_items_add (private_data_t **lista, private_data_t *new) |
| static void | private_items_remove (private_data_t **lista, private_data_t *elem) |
| static private_data_t * | private_item_find (private_data_t **data, const char *item_name) |
| int | private_item_get_int (private_data_t **data, const char *item_name) |
| __attribute__ | ( | (visibility("hidden")) | ) |
| int array_add | ( | char *** | array, |
| char * | string | ||
| ) |
| int array_add_check | ( | char *** | array, |
| char * | string, | ||
| int | casesensitive | ||
| ) |
| int array_count | ( | char ** | array | ) |
| void array_free | ( | char ** | array | ) |
| int array_item_contains | ( | char ** | array, |
| const char * | string, | ||
| int | casesensitive | ||
| ) |
| char* array_join | ( | char ** | array, |
| const char * | sep | ||
| ) |
| char** array_make | ( | const char * | string, |
| const char * | sep, | ||
| int | max, | ||
| int | trim, | ||
| int | quotes | ||
| ) |
| const char* ekg_itoa | ( | long int | i | ) |
| int list_count | ( | list_t | list | ) |
| int list_destroy3 | ( | list_t | list, |
| void(*)(void *) | func | ||
| ) |
|
static |
|
static |
|
static |
| int private_item_get_int | ( | private_data_t ** | data, |
| const char * | item_name | ||
| ) |
|
static |
|
static |
| int string_append | ( | string_t | s, |
| const char * | str | ||
| ) |
Append to string_t s, NUL terminated string pointed by str
Wrapper to:string_append_n(s, str, -1)
| int string_append_c | ( | string_t | s, |
| char | c | ||
| ) |
Append to string_t s char c.
| s | - string_t |
| c | - char to append |
| char* string_free | ( | string_t | s, |
| int | free_string | ||
| ) |
Cleanup memory after string_t s, and perhaps (if free_string set) cleanup memory after char buffer.
| s | - string_t which we want to free. |
| free_string | - do we want to free memory after char buffer? |
| string_t string_init | ( | const char * | value | ) |
init string_t struct, allocating memory for string passed by value, and setting internal string_t data.
| value | - if NULL char buffer will be inited with "", otherwise with given value. |
|
static |
1.8.13