First working Linux C version