for (i = 0; i < s->nOutputDev; i++) if (!memcmp (outputPtr, &s->outputDev[i], sizeof (CompOutput))) output = i;