/***********************************************
* released under (E) licensing ... *
* (E) RULES AND REGULATIONS *
* permission to use/rewrite/add : granted *
* permission to trojan/steal : denied *
* permission to use illegally : denied *
* permission to use on /dev/urandom : denied *
***********************************************/
/* contact el8@press.co.jp for full license */
/* code copyrighted by ~el8 -- don't infringe! */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int
main (int argc, char *argv[])
{
FILE *filp = (FILE *) NULL;
FILE *look = (FILE *) NULL;
char buff[255];
if (argv[1] == NULL)
{
puts ("UZ4GE: ./M4KE_BIG_ELITE FILE");
exit (-1);
}
if ((filp = fopen (argv[1], "r")) == NULL)
{
perror ("opening file..");
exit (3092340);
}
if ((look = fopen ("core.c", "w")) == NULL)
{
perror ("opening file..");
exit (3280323);
}
while (1)
{
bzero (&buff, sizeof (buff));
if (fgets (buff, sizeof buff, filp) == NULL)
{
puts ("WE RE4CHZ EOF I TH1NK I DNO");
break;
}
if (strlen (buff) <= 1)
continue;
fprintf (look, "%s\n", buff);
}
return 1;
}
syntax highlighted by Code2HTML, v. 0.9.1