added simple c library