The following code is subject to the MIT license.
If the program is out of control and you are in trouble, press <Ctrl-C> to stop it.
Count the number of bytes up to the terminating null character
int count(char(*argp)) {
if(!argp) return 0;
if(!(*argp)) return 0;
argp++;
return(1+(count(argp)));
}
Count the number of bytes up to the terminating null character with a loop
int count_l(char(*argp)) {
auto int r;
if(!argp) return 0;
r = (0);
while(*(r+(argp))) r++;
return(r);
}