Create ps Implementation using C