SELKIELogger  1.0.0
DWHexPairs.c File Reference

Test conversion of hexadecimal character pairs to integers. More...

#include <stdbool.h>
#include <stddef.h>
#include <stdio.h>
#include "DWTypes.h"
Include dependency graph for DWHexPairs.c:

Go to the source code of this file.

Functions

bool test (const char *in, const uint8_t target)
 
int main (void)
 

Detailed Description

Test conversion of hexadecimal character pairs to integers.

Definition in file DWHexPairs.c.

Function Documentation

◆ main()

int main ( void  )

Test hexpair_to_uint() for CTest

Returns
1 on error, otherwise 0

Definition at line 44 of file DWHexPairs.c.

◆ test()

bool test ( const char *  in,
const uint8_t  target 
)

Confirm characters passed as input convert to target value.

Parameters
[in]inHexadecimal character pair
[in]targetTarget integer value
Returns
True on success, false on failure

Definition at line 72 of file DWHexPairs.c.