A detailed example on how to retreive and handle the current vigilance state of a station (Morlaix [Lannidy] in this example).
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#define VIGICRUES_LOIRE_BRETAGNE 8
{
char *s = NULL;
s = "Green";
break;
s = "Yellow";
break;
s = "Orange";
break;
s = "Red";
break;
}
struct tm *p_date = localtime(&(p_data->
timestamp));
printf("Current vigilance state for station \"Morlaix [Lannidy]\":\n"
"%s published on %s", s, asctime(p_date));
}
int main(void)
{
}