HEXNCPY(9)

NAME
hexncpy - converts a block of bytes into an ASCII string

SYNOPSIS
#include <sys/libkern.h>
char *
hexncpy(const u_char *inb, int inlen, char *outb, int outlen, const char *sep);

DESCRIPTION
The hexncpy() function converts a block of bytes to an ASCII string which represents its values as hex digits.

inb Pointer to the array of bytes to be converted.

inlen
    Number of bytes to parse from the input buffer.

outb
    Buffer to store the resulting string. It should be large enough to hold all the hexadecimal characters that want to be represented, the separators and the null terminator character.

outlen
    Number of bytes to store in the buffer.

sep Character to be used as separator

RETURN VALUES
The hexncpy() function returns a pointer to the string containing an ASCII representation as hex digits of the values passed in inb.

SEE ALSO
ascii(7), hexdump(9), kether_ntoa(9)

HISTORY
The hexncpy() function first appeared in DragonFly 3.3.