#include "WorkingDialog.h"
void *SaHexToAscii(void *vp, int siz, int prepend);
Returned values are `0' - `9' and `a', `b', `c', `d', `e', or `f'.
Failures occur if malloc fails, or a NULL buffer is passed in for conversion.
#include "WorkingDialog.h"
...
#define SIZE 1024
void *binary; /* pointer for binary data */
char *string; /* conversion string */
if(!(binary = malloc(1024)))
return;
read(file_descriptor, binary, SIZE);
if((string = SaHexToAscii(binary, size, 0)) == NULL) {
free(binary);
return;
}
printf("Ascii Data: %s\n", string);
...
#include "SaRnHtml.h"
int SaHtmlBegin();
SaHtmlBegin();will write:
<HTML>to the output stream.