Skip to content

Commit 915d6b4

Browse files
committed
no minute count, only msg
1 parent 90657d7 commit 915d6b4

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

peN.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void PEN(void)
6161
ulong r=0; /* answer */
6262

6363
/* put this command inside a loop to get previews when pressing CTRL-C */
64-
/* ctrlc("%s: Trying now %u\n", __FUNCTION__, r); */
64+
/* ctrlc_printf("%s: Trying now %u\n", __FUNCTION__, r); */
6565

6666
printf("%s: %lu\n", __FUNCTION__, r); /* answer */
6767
return;

projecteuler.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
/* ---------------------------------------------------------------------- */
3232
/* globals */
33-
volatile sig_atomic_t oneminute=0;
33+
/* volatile sig_atomic_t oneminute=0; */
3434
volatile sig_atomic_t CTRLC=0;
3535

3636
/* ---------------------------------------------------------------------- */

projecteuler.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,14 @@ typedef unsigned int uint;
8989

9090
/* ---------------------------------------------------------------------- */
9191
/* prototypes */
92-
void startmain(void);
93-
/* void startfunc(const char *s); */
94-
void finishmain(void);
95-
92+
void startmain(void); /* grab signals */
93+
void finishmain(void); /* give back signals */
9694
void sigproc(); /* Grab ctrl-c to show info */
9795
void quitproc(); /* ctrl-\ to abort cleanly */
9896
void oneminuterule(); /* one minute rule */
9997
void ctrlc_printf(char *fmt, ...); /* print only if pressed CTRL-C */
10098

101-
/* math auxiliary functions */
99+
/* auxiliary functions */
102100

103101
/* ... your functions here */
104102

0 commit comments

Comments
 (0)