codice:
/*
  Name: Now()
  Author: Luc@s
  Description: Return the current hour
  Return: times[0] => the hour, times[1] => the minutes
*/

int * now()
{
        time_t t = time(NULL);
        struct tm * tempo;
        /*
        C++ only
                tm * tempo;
        */
        tempo = localtime(&t);
        /* 
        C++ only
                 int * times = new int[2];
        */
        int * times = malloc(sizeof(int) * 2);
        times[0] = tempo->tm_hour;
        times[1] = tempo->tm_min;
        return times;
}