Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

pmacstat.c File Reference

#include <stdio.h>

Include dependency graph for pmacstat.c:

Include dependency graph

Go to the source code of this file.

Functions

int main ()

Variables

char messages [48][80]


Function Documentation

int main  
 

Definition at line 55 of file pmacstat.c.

00056 {
00057   char buffer[80];
00058   int t;
00059 
00060   /* read "812000804401" string */
00061   fgets(buffer, 80, stdin);
00062 
00063   /* split into chars */
00064 
00065   for (t = 0; t < 12; t++)
00066   {
00067     /* first char */
00068     if (buffer[t] & 8)
00069     {
00070       printf("%s\n", messages[4*t]);
00071     }
00072     if (buffer[t] & 4)
00073     {
00074       printf("%s\n", messages[4*t+1]);
00075     }
00076     if (buffer[t] & 2)
00077     {
00078       printf("%s\n", messages[4*t+2]);
00079     }
00080     if (buffer[t] & 1)
00081     {
00082       printf("%s\n", messages[4*t+3]);
00083     }
00084   }
00085 }


Variable Documentation

char messages[48][80] [static]
 

Definition at line 4 of file pmacstat.c.


Generated on Sun Dec 2 15:57:28 2001 for rcslib by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001