Re: about string and character
- From: Richard Heathfield <rjh@xxxxxxxxxxxxxxx>
- Date: Mon, 03 Dec 2007 23:35:51 +0000
Joe Wright said:
Willem wrote:
<snip>
Doesn't strlen return the index of the first '\0' in a string ? :-)No. 'size_t strlen(const char *s);' returns an unsigned integer count of
the number of characters before the terminating nul.
How does that result differ from the index of the first '\0' in a string?
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
.
- Follow-Ups:
- Re: about string and character
- From: Joe Wright
- Re: about string and character
- References:
- Re: about string and character
- From: Chris Torek
- Re: about string and character
- From: Willem
- Re: about string and character
- From: Joe Wright
- Re: about string and character
- Prev by Date: Re: *generic* pointer to function(s)?
- Next by Date: Re: *generic* pointer to function(s)?
- Previous by thread: Re: about string and character
- Next by thread: Re: about string and character
- Index(es):
Relevant Pages
|