Old stuff/ecole_etude_fac_de_pau/licence_2/struct/tp1/verifdate.c~
(Deskargatu)#include <stdio.h>
#include <stdlib.h>
int verifdate(char *date)
{
int i=0;
int tab[8]={0,1,3,4,6,7,8,9};
for (i=0;i<8;i++)
{
if (date[tab[i]] > 57 || date[tab[i]] < 48)
{
return 0;
}
}
}
int main()
{
char a[11]="q0/08/2005";
verifdate(a);
}