News for hackers. Stuff that matters.
Re:Str: Yet another string library for C language by souprock on Friday November 27, 2020 @06:31PM (#25233539)
It's not problematic. C programmers are expected to avoid screwing that up. C is a full-power language.

If available, strdupa() would be a fine way to get a suitable local copy of the string. Commonly though, the programmer knows that there will not be threads and can make the string non-constant.

There are no comments on this comment yet.