Implement method call for C