Alejandro Colomar wrote: > I would implement it as simply as > > #define strnul(s) strchr(s, '\0') > > which works for both C and C++, and unless using a 10-year-old compiler, > produces optimized code.
You would. I don't. To me, the definition above is a "premature optimization" in the sense of Knuth. As I said, we can rely on inline functions in Gnulib. In other words, it is more important to reduce the _assumptions_ made by some code, rather than its code size. Bruno
