def get_var_rank(self, name):
name = create_string_buffer(name)<EOL>rank = c_int()<EOL>self.library.get_var_rank.argtypes = [c_char_p, POINTER(c_int)]<EOL>self.library.get_var_rank.restype = None<EOL>self.library.get_var_rank(name, byref(rank))<EOL>return rank.value<EOL>
Return array rank or 0 for scalar.