Text an Hex in C.
#include <stdio.h>
#define SIZE 32
int main()
{
char string[SIZE];
int i = 0;
printf("Text to translate: ");
fgets(string,SIZE,stdin);
while(string[i] != '\n')
{
printf("%2x ",string[i]);
i++;
}
putchar(string[i]);
return(0);
}
Thakur Paudel