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
ADVERTISEMENT
click here
Web Bug from http://us.adserver.yahoo.com/l?M=294855.5468653.6549235.3001176/D=groups/S=:HM/A=2376776/rand=484291915


Yahoo! Groups Links

Reply via email to