/[LeafOK_CVS]/lbbs/src/main.c
ViewVC logotype

Diff of /lbbs/src/main.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 by sysadm, Mon Oct 18 08:16:18 2004 UTC Revision 1.2 by sysadm, Mon Oct 18 08:44:54 2004 UTC
# Line 20  Line 20 
20  int  int
21  main (int argc, char *argv[])  main (int argc, char *argv[])
22  {  {
23    FILE *fp;    FILE *fp;
24    time_t t;    time_t t;
25    
26    init_daemon ();    init_daemon ();
27    
28    while (1)    while (1)
29    {      {
30      sleep (60);        sleep (60);
31      if ((fp = fopen ("bbsd.log", "a")) >= 0)        if ((fp = fopen ("bbsd.log", "a")) >= 0)
32          {          {
33            t = time (0);            t = time (0);
34            fprintf (fp, "I'm here at %s\n", asctime (localtime (&t)));            fprintf (fp, "I'm here at %s\n", asctime (localtime (&t)));
35            fclose (fp);            fclose (fp);
36          }          }
37    }      }
38    
39    return 0;    return 0;
40  }  }


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1