En cualquier compilador decente de C puedes usar:
Código C:
Ver original#include <time.h>
#include <stdio.h>
#include <string.h>
int main(void)
{
struct tm start_time;
struct tm end_time;
memset(&start_time
, 0, sizeof(struct tm
)); memset(&end_time
, 0, sizeof(struct tm
));
strptime("2015-01-18", "%Y-%m-%d", &start_time);
strptime("2015-01-24", "%Y-%m-%d", &end_time);
printf("%.2lf\n", seconds
/ (3600*24));
return 0;
}