fork(2) download
  1. #include <stdio.h>
  2.  
  3. int digit(char ch)
  4. {
  5. return ch - (ch<='9' ? '0': ch<='Z' ? 'A'-10 : 'a'-10);
  6. }
  7.  
  8. int main(void)
  9. {
  10. const char *in= "4A75737420612074657374";
  11. unsigned q;
  12.  
  13. for (q=0; in[q]; q+=2)
  14. printf("%c", (digit(in[q])<<4) | digit(in[q+1]));
  15.  
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 2168KB
stdin
Standard input is empty
stdout
Just a test