The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Functions
table.c File Reference

Functions to convert strings to integers and vice versa. More...

#include <freeradius-devel/util/table.h>
#include <freeradius-devel/util/misc.h>
+ Include dependency graph for table.c:

Go to the source code of this file.

Functions

char const * _fr_table_ptr_by_str_value (fr_table_ptr_sorted_t const *table, size_t table_len, char const *str_val, char const *def)
 Brute force search a sorted or ordered ptr table, assuming the pointers are strings. More...
 

Detailed Description

Functions to convert strings to integers and vice versa.

Definition in file table.c.

Function Documentation

◆ _fr_table_ptr_by_str_value()

char const* _fr_table_ptr_by_str_value ( fr_table_ptr_sorted_t const *  table,
size_t  table_len,
char const *  str_val,
char const *  def 
)

Brute force search a sorted or ordered ptr table, assuming the pointers are strings.

Parameters
[in]tableto search in.
[in]table_lenNumber of elements in the table.
[in]str_valto compare against the ptr field.
[in]defdefault value.

Definition at line 36 of file table.c.

+ Here is the call graph for this function: