Functions | Variables
key_value.c File Reference
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include "key_value.h"
Include dependency graph for key_value.c:

Go to the source code of this file.


void set_key_values (KeyValue *const new_key_values, const unsigned int new_number_of_key_values)
static int key_value_compare_keys (const void *a, const void *b)
KeyValuefind_item_by_value (const char *const value)
void sort_items_by_key (void)


static KeyValuekey_values = NULL
static unsigned int number_of_key_values = 0

Function Documentation

◆ find_item_by_value()

KeyValue* find_item_by_value ( const char *const  value)

Definition at line 37 of file key_value.c.

References number_of_key_values.

Referenced by test_find_item_by_value().

◆ key_value_compare_keys()

static int key_value_compare_keys ( const void *  a,
const void *  b 

Definition at line 32 of file key_value.c.

Referenced by sort_items_by_key().

◆ set_key_values()

void set_key_values ( KeyValue *const  new_key_values,
const unsigned int  new_number_of_key_values 

Definition at line 25 of file key_value.c.

References number_of_key_values.

Referenced by create_key_values(), and destroy_key_values().

◆ sort_items_by_key()

void sort_items_by_key ( void  )

Definition at line 48 of file key_value.c.

References key_value_compare_keys(), and number_of_key_values.

Referenced by test_sort_items_by_key().

Variable Documentation

◆ key_values

KeyValue* key_values = NULL

Definition at line 22 of file key_value.c.

◆ number_of_key_values

unsigned int number_of_key_values = 0

Definition at line 23 of file key_value.c.

Referenced by find_item_by_value(), set_key_values(), and sort_items_by_key().