more crap
parent
d20452893d
commit
49f8daeb91
|
@ -0,0 +1,25 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
FILE *fp = fopen("nice.txt", "r");
|
||||
|
||||
for(;;)
|
||||
{
|
||||
if(feof(fp))
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
char c[3] = { 0 };
|
||||
fread(c, 1, 2, fp);
|
||||
fgetc(fp);
|
||||
|
||||
printf("%c", strtol(c, NULL, 16));
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
FILE *fp = fopen("nice_.txt", "r");
|
||||
|
||||
for(;;)
|
||||
{
|
||||
if(feof(fp))
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
char c[9] = { 0 };
|
||||
fread(c, 1, 8, fp);
|
||||
fgetc(fp);
|
||||
|
||||
printf("%c", strtol(c, NULL, 2));
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
#define _XOPEN_SOURCE
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
|
||||
/* WHY IS THIS VALID
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char **argv;*/
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
printf("%s\n", crypt(argv[1], "zd"));
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue