begin working on c implimentation of increment function.