>Can you people say, How to find the length a string withouy
>using the predefined functions (strlen)????
size_t mystrlen(const char* s){
size_t t=0;
while (s[t]) t++;
return t;
}
>Is there any other way even without using a loop????
Not without redefining what a string is. (And before people start
suggesting things like strstr() or strchr(), note that these functions
implicitly use a loop)
--
PJH
It makes it difficult to follow the thread of conversation.
What's wrong with top posting?
Top posting.
What's the most annoying thing on email lists?
Alderley plc, Arnolds Field Estate, The Downs, Wickwar, Gloucestershire, GL12 8JD, UK
Tel: +44(0)1454 294556 Fax: +44 (0)1454 299272
Website : www.alderley.com Sales : [EMAIL PROTECTED] Service : [EMAIL PROTECTED]
This email and its contents are confidential and are solely for the use of the intended recipient. If you are not the original recipient you have received it in error and any use, dissemination, forwarding, printing or copying of this email is strictly prohibited. Should you receive this email in error please immediately notify [EMAIL PROTECTED]
This email has been scanned for viruses, however you should always scan emails with your own systems prior to opening.
To unsubscribe, send a blank message to <mailto:[EMAIL PROTECTED]>.
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/c-prog/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
