C/C++ API for SNOPT7