longest lines and trailing string in c