Nlopt example pdf. 4 would return major=3, minor=1, and bugfix=4.