Another lesson is:
Don't cripple your standard library. If C had a function for this super common need then this problem would never happen.
Don't cripple your standard library. If C had a function for this super common need then this problem would never happen.