News for hackers. Stuff that matters.
Re:Facil.io: A micro-framework for C web applications by pantalaimon on Saturday January 26, 2019 @07:11AM (#19005981)
No it is not necessary. If no length is given, the string is assumed to be NULL-terminated.

It's a bit unfortunate that they use two code paths for that which are basically just copy & paste.

https://github.com/boazsegev/facil.io/blob/master/lib/facil/...

Re:Facil.io: A micro-framework for C web applications by bowild on Thursday January 31, 2019 @12:56PM (#19046953)
This approach moves an `if` statement out of the loop, so there's no need to repeat it.