i think memcpy and all mem funcitons does copy only the values.
but the str funcitons will copy the '\0' also.
and also strcmp is so simple and it just finds the difference b/w the indiviudal index values of array(string)...i.e,
for ex:
char a[3],b[3];
strcmp(a,b) /*is equal to */
-----------------------
int strcmp(a,b)
{
int temp=0,i;
for(i=0;i<3;i++)
if(a<b)
temp+=b[i]-a[i];
else
temp+=a[i]-b[i];
return temp;
}
ashwin mittal <[EMAIL PROTECTED]> wrote:
Hi All,
Can anybody tell me the difference between the string
function
one starting with mem like memcpy,memcmp
other starting with str like strcpy,strcmp
Regards,
Ashwin Mittal.
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
To unsubscribe : [EMAIL PROTECTED]
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
To unsubscribe : [EMAIL PROTECTED]
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To reply to this message, go to:
http://groups.yahoo.com/group/Programmers-Town/post?act=reply&messageNum=3630
Please do not reply to this message via email. (more info)
- To visit your group on the web, go to:
http://groups.yahoo.com/group/Programmers-Town/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
