aboutsummaryrefslogtreecommitdiffstats
path: root/make/config/joal-alc-impl-CustomCCode.c
blob: 92072100727f0f8d4777974fae63da399a820178 (plain)
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);
  }
}