T
Tomás Ó hÉilidhe
James Kanze said:In other words, there's no such thing as portable code.
Quite the contrary. Here's some portable code:
#include <stddef.h>
size_t GetStrLen(char const *const p)
{
char const *q = p;
while (*q++);
return q - p - 1;
}