[BusyBox] glibc macro's, strlen

Glenn McGrath bug1 at optushome.com.au
Fri Mar 8 22:47:03 UTC 2002


strlen adds a fair bit of space everytime its used as its implemented in
glibc as a macro.

If we do something like this

size_t xstrlen(const char *string)
{
	return(strlen(string));
}

we save 32 Bytes every time we use xstrlen instead of strlen.

I guess its a bad approach though, as its a glibc problem, not busybox's
or uclibc's.

Anybody know why they dont use macro's in glibc and not do normal
functions ?

printf is in the smae boat i think.


Glenn



More information about the busybox mailing list