Implemented some standart c functions