diff options
author | kbr <[email protected]> | 2006-02-20 01:34:37 +0000 |
---|---|---|
committer | kbr <[email protected]> | 2006-02-20 01:34:37 +0000 |
commit | 68a842cc62f12e6372c804708690e31169368c30 (patch) | |
tree | bfe6c1310f5caa115251964d6b0ee2a53852cbba /make/joal-alc-impl-CustomCCode.c | |
parent | 48e6e34ebc8747ef80a4c74c18679f027a8172f0 (diff) |
Added alcGetDeviceSpecifiers to support alcGetString(null, ALC_DEVICE_SPECIFIER);
rewrote alcGetString to use same underlying routine
git-svn-id: file:///home/mbien/NetBeansProjects/JOGAMP/joal-sync/git-svn/../svn-server-sync/joal/trunk@113 03bf7f67-59de-4072-a415-9a990d468a3f
Diffstat (limited to 'make/joal-alc-impl-CustomCCode.c')
-rwxr-xr-x | make/joal-alc-impl-CustomCCode.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/make/joal-alc-impl-CustomCCode.c b/make/joal-alc-impl-CustomCCode.c new file mode 100755 index 0000000..9207210 --- /dev/null +++ b/make/joal-alc-impl-CustomCCode.c @@ -0,0 +1,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); + } +} |