summaryrefslogtreecommitdiffstats
path: root/dvb-t/au-MidNorthCoast
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2014-04-05 16:54:40 +0100
committerJonathan McCrohan <jmccrohan@gmail.com>2014-04-05 16:54:40 +0100
commite17e23a7a53c15ab29c66c2e5361b8b70491cac2 (patch)
tree194370171a22c7f6bc83cea96f6f4928e9b33286 /dvb-t/au-MidNorthCoast
parent1a75269c26b00de927262a10ef06374226e7a3c4 (diff)
downloaddtv-scan-tables-e17e23a7a53c15ab29c66c2e5361b8b70491cac2.tar.gz
Release 0+git20140326.cfc2975-1debian/0+git20140326.cfc2975-1
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions
c */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#include <signal.h>
#include <stdio.h>
#include <sys/select.h>
#include <unistd.h>
#include <time.h>

volatile unsigned int variable = 0;
volatile unsigned int print_variable = 0;

void alarm_handler(int signum)
{
    alarm(60);
}

int main()
{        
    signal(SIGALRM, alarm_handler);
    alarm(1);

    for (;;)
    {
        select(0, NULL, NULL, NULL, NULL);
 time_t t = time(NULL);
 struct tm tm = *localtime(&t);
 printf("%d-%d-%d %d:%d:%d\n", tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec);

    }
}