strncat implementation in c