Two Questions about "strlen", "strcat" and "strcpy"
From: Matt (mattjack40_at_hotmail.com)
Date: 08/26/04
- Next message: val: "Re: bsearch for Windows ce"
- Previous message: MakisGR: "Need help on bit operations define"
- Next in thread: Mike Wahler: "Re: Two Questions about "strlen", "strcat" and "strcpy""
- Reply: Mike Wahler: "Re: Two Questions about "strlen", "strcat" and "strcpy""
- Reply: red floyd: "Re: Two Questions about "strlen", "strcat" and "strcpy""
- Reply: Douglas A. Gwyn: "Re: Two Questions about "strlen", "strcat" and "strcpy""
- Reply: Brian Inglis: "Re: Two Questions about "strlen", "strcat" and "strcpy""
- Reply: Default User: "Re: Two Questions about "strlen", "strcat" and "strcpy""
- Reply: Keith Thompson: "Re: Two Questions about "strlen", "strcat" and "strcpy""
- Reply: Brian Raiter: "Re: Two Questions about "strlen", "strcat" and "strcpy""
- Reply: Dan Pop: "Re: Two Questions about "strlen", "strcat" and "strcpy""
- Reply: Karthiik Kumar: "Re: Two Questions about "strlen", "strcat" and "strcpy""
- Reply: Paul Hsieh: "Re: Two Questions about "strlen", "strcat" and "strcpy""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: val: "Re: bsearch for Windows ce"
- Previous message: MakisGR: "Need help on bit operations define"
- Next in thread: Mike Wahler: "Re: Two Questions about "strlen", "strcat" and "strcpy""
- Reply: Mike Wahler: "Re: Two Questions about "strlen", "strcat" and "strcpy""
- Reply: red floyd: "Re: Two Questions about "strlen", "strcat" and "strcpy""
- Reply: Douglas A. Gwyn: "Re: Two Questions about "strlen", "strcat" and "strcpy""
- Reply: Brian Inglis: "Re: Two Questions about "strlen", "strcat" and "strcpy""
- Reply: Default User: "Re: Two Questions about "strlen", "strcat" and "strcpy""
- Reply: Keith Thompson: "Re: Two Questions about "strlen", "strcat" and "strcpy""
- Reply: Brian Raiter: "Re: Two Questions about "strlen", "strcat" and "strcpy""
- Reply: Dan Pop: "Re: Two Questions about "strlen", "strcat" and "strcpy""
- Reply: Karthiik Kumar: "Re: Two Questions about "strlen", "strcat" and "strcpy""
- Reply: Paul Hsieh: "Re: Two Questions about "strlen", "strcat" and "strcpy""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|