/* Compact font set */ void tcCompactSet(tcCtx g) { tcprivCtx h = g->ctx.tcpriv; fillSet(g); writeSet(g); freeFonts(g); initSet(g, h); #if TC_SUBR_SUPPORT subrReuse(g); #endif /* TC_SUBR_SUPPORT */ }
int main(void){ const int SIZE = 5; int S1[5]; int S3[5]; int min1; int min2; srand (time(NULL)); fillSet(S1, SIZE); printSet(S1, SIZE); fillSet(S3, SIZE); printSet(S3, SIZE); min1 = minOfSet(S1, SIZE); min2 = minOfSet(S3, SIZE); printf("Sum of minimal values is %d\n", min1 + min2); }