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

#include <stdio.h>
#include "htuu.h"
int main (int argc, char **argv)
{
char outbuf[500];
char *pOut = outbuf;
int cbOut = (strlen(argv[1]) * 3) / 4;
if (argc != 2)
{
fprintf (stderr, "usage: uudec <base64-string>\n");
exit (1);
}
HTUU_decode (argv[1], pOut, sizeof(outbuf));
while (cbOut--)
{
printf ("%02x %c\n", (unsigned char) *pOut, *pOut);
pOut++;
}
}