#include "WorkingDialog.h"
void *SaAsciiToHex(char *str, int *siz);
A "0x" can be prepended to the input string if desired, but is not necessary.
Valid character values are `0' - `9' and `a', `b', `c', `d', `e', or `f' (case insensitive)
Failures occur if malloc fails or invalid characters are found.
#include "WorkingDialog.h"
...
#define cbin "FF2C324EFF00"; /* could also be
"0xFF2C324EFF00" */
void *binary; /* pointer for binary data */
int size; /* return size of buffer */
if((binary = SaAsciiToHex(cbin, &size)) == NULL)
return;
write(file_descriptor, (char *)binary, size);
...