implememtation of string functions in c library