ucspi-ssl  0.99e
TLS encryption for IPv6 communication
Functions
hexconversion.c File Reference
#include "hexconversion.h"
Include dependency graph for hexconversion.c:

Go to the source code of this file.

Functions

void bytetohex (unsigned char decimal, char hex[3])
 
char tohex (char num)
 
int fromhex (unsigned char c)
 

Function Documentation

◆ bytetohex()

void bytetohex ( unsigned char  decimal,
char  hex[3] 
)

Convert a number of max 255 to hex.

Parameters
decimalThe decimal number.
hexThe converted hex value.

Definition at line 8 of file hexconversion.c.

Here is the caller graph for this function:

◆ fromhex()

int fromhex ( unsigned char  c)

Definition at line 32 of file hexconversion.c.

◆ tohex()

char tohex ( char  num)

Definition at line 23 of file hexconversion.c.