西暦*y年*m月*d日の日付を次の日前の日の日付に更新する関数を作成せよ。

void decrement_date(int *y,int *m,int *d)
void increment_date (int *y,int *m,int *d) を使用
閏年を考慮して計算すること

お願いします