#include "common.h" t_duration int2duration(int n) { t_duration dur; int curr, i, j, ok; curr=0; ok=0; for (i=0; i