convertascii
convertascii(p, &c, sizeof (char));
convertascii(p, (char *)&c, sizeof (short));
convertascii(p, (char *)&c, sizeof (int));
convertascii(p, (char *)&c, sizeof (int64_t));
convertascii(p, c, length - 1);
static void convertascii(char *p, char *c, int size);