Two Questions about "strlen", "strcat" and "strcpy"

From: Matt (mattjack40_at_hotmail.com)
Date: 08/26/04


Date: 26 Aug 2004 19:44:06 GMT

I have 2 questions:

1. strlen returns an unsigned (size_t) quantity. Why is an unsigned
value more approprate than a signed value? Why is unsighned value less
appropriate?

2. Would there be any advantage in having strcat and strcpy return a
pointer to the "end" of the destination string rather than returning a
pointer to its beginning?

Thanks,
Matt

-- 
comp.lang.c.moderated - moderation address: clcm@plethora.net


Relevant Pages