libcfe-tables  2.9.85
some useful C-functions
str_table.h File Reference
Include dependency graph for str_table.h:

Go to the source code of this file.

Macros

#define str_table_free(x)   table_free(x)
 
#define str_table_get_num_records(x)   table_get_num_records(x)
 

Enumerations

enum  { FIELD_STRING, N_FIELDS }
 

Functions

 INIT_TABLE_TYPE_DEF (str)
 
rec_t str_table_store (table_t *t, const char *str, uint16_t len, rec_t pos)
 
rec_t str_table_get_record_by_string (const table_t *t, const char *str, uint16_t len)
 
rec_t str_table_get_record_by_string2 (const table_t *t, const char *str, uint16_t len)
 
rec_t str_table_get_record_by_string_sorted (const table_t *t, const char *str, uint16_t len, rec_t *pos)
 

Macro Definition Documentation

◆ str_table_free

#define str_table_free (   x)    table_free(x)

Definition at line 18 of file str_table.h.

◆ str_table_get_num_records

#define str_table_get_num_records (   x)    table_get_num_records(x)

Definition at line 19 of file str_table.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
FIELD_STRING 
N_FIELDS 

Definition at line 7 of file str_table.h.

Function Documentation

◆ INIT_TABLE_TYPE_DEF()

INIT_TABLE_TYPE_DEF ( str  )

◆ str_table_get_record_by_string()

rec_t str_table_get_record_by_string ( const table_t t,
const char *  str,
uint16_t  len 
)

◆ str_table_get_record_by_string2()

rec_t str_table_get_record_by_string2 ( const table_t t,
const char *  str,
uint16_t  len 
)

◆ str_table_get_record_by_string_sorted()

rec_t str_table_get_record_by_string_sorted ( const table_t t,
const char *  str,
uint16_t  len,
rec_t pos 
)

◆ str_table_store()

rec_t str_table_store ( table_t t,
const char *  str,
uint16_t  len,
rec_t  pos 
)