From 8911ddbc575c4714c5ac294dd32bbd9ab4278a2d Mon Sep 17 00:00:00 2001 From: Davide Morelli Date: Tue, 29 Nov 2005 18:04:09 +0000 Subject: adding shared functions svn path=/trunk/externals/frankenstein/; revision=4081 --- common.c | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++ common.h | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 144 insertions(+) create mode 100755 common.c create mode 100755 common.h diff --git a/common.c b/common.c new file mode 100755 index 0000000..1eb896f --- /dev/null +++ b/common.c @@ -0,0 +1,63 @@ + +#include "common.h" + +t_duration int2duration(int n) +{ + t_duration dur; + int curr, i, j, ok; + curr=0; + ok=0; + for (i=0; i