Should be called LICENSE not GPL
C version
It's not really c++
Rearranging things