home *** CD-ROM | disk | FTP | other *** search
/ Power Hacker 2003 / Power_Hacker_2003.iso / E-zine / Magazines / b4b0 / b4b0-08 / fn.c < prev    next >
Encoding:
C/C++ Source or Header  |  2002-05-27  |  1.7 KB  |  123 lines

  1. /* rip of that one thingie on the web. */
  2.  
  3. #include <stdio.h>
  4. #include <unistd.h>
  5.  
  6. char *africa[] = {
  7.     "Shenika",
  8.     "Mohammed",
  9.     "Al Jabbar",
  10.     "Shaquita",
  11.     "Mohadupah",
  12.     "Jamal",
  13.     "Shaquille",
  14.     "Devinder",
  15.     "Mola Ram",
  16.     "Laquita",     // 10
  17.     "Shaft",
  18.     "Anil",
  19.     "Tyrone",
  20.     "Rashid",
  21.     "Raheem",
  22.     "Shahid",
  23.     "Danita",
  24.     "Latoya",
  25.     "Abdul",
  26.     "Jabar",    // 20
  27.     "Kareem",
  28.     "Rashanda",
  29.     "Lamar",
  30.     "Lakeesha",
  31.     "Shaniqua",
  32.     "Kamal",
  33.     "Yaniq",
  34.     "Kamilah",
  35.     "Tireese",    // 30
  36.     "Terrel",
  37.     "Antwon",
  38.     "Rodney",
  39.     "Anfernee",
  40.     "Zambizu",
  41.     "Lomb",
  42.     "Shaka",
  43.     "Zulu",
  44.     "Sharonda",    
  45.     "Boniqua",
  46.     NULL };
  47.  
  48. char *whitey[] = {
  49.     "John",
  50.     "john",
  51.     "jon",
  52.     "Bob",
  53.     "Sam",
  54.     "Josh",
  55.     "Robert",
  56.     "The White Oppressor",
  57.     "The Man",
  58.     "the man",
  59.     "man",
  60.     "Sean Harney",
  61.     "sean harney",
  62.     "sam",
  63.     "sean",
  64.     "biff",
  65.     "horizon",
  66.     "antilove",
  67.     "jsbach",
  68.     "chrak",
  69.     "tip",
  70.     "duke",
  71.     "jennicide",
  72.     "JP",
  73.     "Rloxley",
  74.     "Kent",
  75.     "Ken",
  76.     NULL };
  77.     
  78. int chk(char *b) {
  79.  
  80. int n;
  81. char *str;
  82.  
  83.   for (n = 0 ; n < sizeof(whitey) ; n++) 
  84.   {
  85.          str = whitey[n];
  86.                   if (str == (char *)NULL) 
  87.                 return 0;
  88.         if (strcmp(b, str) == 0)
  89.             return 1; 
  90.   }
  91.  
  92.   return 0;
  93. }
  94.  
  95. int main(int argc, char *argv[]) {
  96.  
  97. int i;
  98. char *f, *m, *l, b[20];
  99.  
  100.   srand (time(NULL)); 
  101.  
  102.   f = africa[rand() % 40];
  103.   m = africa[rand() % 40];
  104.   l = africa[rand() % 40];
  105.  
  106.   printf ("Hello Whitey. you must cleanse yourself from the evils of the"
  107.       "blue eyed devilz.\n");
  108.   printf ("Type your name: ");
  109.  
  110.   scanf ("%20s", b);
  111.  
  112.   if (chk(b) == 0) 
  113.     {
  114.         printf ("%s, you have been cleansed of whitey impuritys. Your new name iz: ", b);
  115.         printf ("%s %s %s\n", f, m, l); 
  116.       exit(0);
  117.     }
  118.  
  119.   printf ("you, %s, are the white oppressor. damn the man.\n", b); 
  120.   return 0; 
  121.  
  122. }
  123.