1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
int strlen_alc(ALCdevice *device, int param, const char* str) { int len = 0; if ((device == NULL) && (param == ALC_DEVICE_SPECIFIER)) { while (*str != 0) { while (*str != 0) { ++str; ++len; } ++str; ++len; } return len; } else { return strlen(str); } }