Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
471 B

  1. #include <stdio.h>
  2. #include "htuu.h"
  3. int main (int argc, char **argv)
  4. {
  5. char outbuf[500];
  6. char *pOut = outbuf;
  7. int cbOut = (strlen(argv[1]) * 3) / 4;
  8. if (argc != 2)
  9. {
  10. fprintf (stderr, "usage: uudec <base64-string>\n");
  11. exit (1);
  12. }
  13. HTUU_decode (argv[1], pOut, sizeof(outbuf));
  14. while (cbOut--)
  15. {
  16. printf ("%02x %c\n", (unsigned char) *pOut, *pOut);
  17. pOut++;
  18. }
  19. }