I saw the following code on the OpenBSD misc@ mailinglist. Don't ask.
/
Copies string of infinite length pointed-to by src to
buffer pointed-to by dst. Assumes buffer of infinite
length. Does not return.
*/
void
strinfcpy (char *dst, const char *src)
{
for (;;)
*dst++ = src++;
}
/
Concatenates string of infinite length pointed-to by src
to the end of the string pointed-to by dst. Assumes buffer
of infinite length. Does not return.
/
void
strinfcat (char *dst, const char *src)
{
for (; *dst; ++dst);
for (;;)
*dst++ = *src++;
}