hi guys,
i had a word with one of my friends and we found a way of resetting the values through the use of a for loop;
printf("%d floats merge sorted in %ld moves using %ld comparisons\n"
,i,moves(0),compares(0));
if(dupe(i,a))
printf("Duplicate keys found\n");
else
printf("All keys unique\n");
getch();
compares(-1);
moves(-1);
that would reset the values to -1 and then in the function i added this for statement;
long moves(int mode){
// adds to i in counting mode (>0), returns i
static int i=0;
if(mode>0)
i+=mode;
else if (mode==0)
return i;
//i+=mode;
else if (mode<0)
i=0;
}