function [ length, name ] = glGetActiveSubroutineName( program, shadertype, index, bufsize )

% glGetActiveSubroutineName  Interface to OpenGL function glGetActiveSubroutineName
%
% usage:  [ length, name ] = glGetActiveSubroutineName( program, shadertype, index, bufsize )
%
% C function:  void glGetActiveSubroutineName(GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei* length, GLchar* name)

% 30-Aug-2012 -- created (generated automatically from header files)

% ---allocate---
% ---protected---

if nargin~=4,
    error('invalid number of arguments');
end

length = int32([0,0]);
name = uint8(zeros(1,bufsize));

moglcore( 'glGetActiveSubroutineName', program, shadertype, index, bufsize, length, name );
name = char(name);
length=length(1:end-1);
return
