#include "util.h"#include <assert.h>Include dependency graph for util.c:

Go to the source code of this file.
Functions | |
| bs_bool | streq (const char *s1, const char *s2) |
| unsigned | len (const char *s) |
| bs_bool | decision_to_bool (const char *s) |
| double | min (double s1, double s2, double s3) |
| double | max (double s1, double s2, double s3) |
| bs_bool decision_to_bool | ( | const char * | s | ) |
Convert a string containing a biometric decision to a bs_bool. Accepted string for TRUE are 1, ACCEPTED and ACCEPT, all the others will return FALSE.
| s | The string to convert |
Definition at line 28 of file util.c.
References FALSE, streq(), and TRUE.
Referenced by handle_fuse2_decision(), and handle_fuse3_decision().
Here is the call graph for this function:

| unsigned len | ( | const char * | s | ) | [inline] |
Compute length of given string.
| s | The string |
Definition at line 20 of file util.c.
Referenced by bsmod_password_init(), connect_and_get(), create_biometric_decision_response(), create_biometric_response(), handle_http_get(), handle_http_post(), init_service(), make_answer(), receive_response(), send_http_error(), and set_definitions().
| double max | ( | double | s1, | |
| double | s2, | |||
| double | s3 | |||
| ) |
Definition at line 48 of file util.c.
Referenced by bsmod_stat_handle_avgminmax(), handle_fuse2(), and handle_fuse3().
| double min | ( | double | s1, | |
| double | s2, | |||
| double | s3 | |||
| ) |
Definition at line 40 of file util.c.
Referenced by bsmod_stat_handle_avgminmax(), handle_fuse2(), and handle_fuse3().
| bs_bool streq | ( | const char * | s1, | |
| const char * | s2 | |||
| ) |
1.5.1