Recently, I found myself in the need to know the number of days separating two dates for a little program I was writing in C.

I searched online for a solution but found nothing for C.

How could I do it?