OpenVPN
Functions | Variables
assert_macro.c File Reference
#include <string.h>
#include "assert_macro.h"
Include dependency graph for assert_macro.c:

Go to the source code of this file.

Functions

const char * get_status_code_string (const unsigned int status_code)
 
unsigned int string_to_status_code (const char *const status_code_string)
 

Variables

static const char * status_code_strings []
 

Function Documentation

◆ get_status_code_string()

const char* get_status_code_string ( const unsigned int  status_code)

Definition at line 26 of file assert_macro.c.

References status_code_strings.

Referenced by get_status_code_string_test().

◆ string_to_status_code()

unsigned int string_to_status_code ( const char *const  status_code_string)

Definition at line 30 of file assert_macro.c.

References status_code_strings.

Referenced by string_to_status_code_test().

Variable Documentation

◆ status_code_strings

const char* status_code_strings[]
static
Initial value:
= {
"Address not found",
"Connection dropped",
"Connection timed out",
}

Definition at line 20 of file assert_macro.c.

Referenced by get_status_code_string(), and string_to_status_code().