Hi,

You can use it for structures by typecasting it to
(void *). Or any other type like ENUMS, binary array ,
etc can be used for this purpose. 

Typical application for memset is to initialize
strcture with 0 or some predefined structures. 

Suppose structure S1 contains 2 int and 4 floats.
Memcpy- U can pass structure (say s1) directly through
socket, at the recving end, recv the buffer and do the
memcpy into same structure directly by using memcpy.
The memcpy will internally fill the structure (that
means values for ints and floats will be directly
filled out).

Memcmp can be used in same context, so you need not
write the program which will compare ints and floats.

Regards,
Mandar


--- ashwin mittal <[EMAIL PROTECTED]> wrote:

> 
> Hi Abhishek !!!!!
> Thanxs for the advice but What are these other
> formats... int,enumerated data types,structures as
> well.
> Plz reply me back if I am correct..
> Regards,
> Ashwin Mittal.
> --- abhishek asthana <[EMAIL PROTECTED]>
> wrote:
> 
> > 
> > memcmp and memcpy can be operarted on  string asd
> > well
> > as any other format of variables declared. while
> > strcmp and strcpy only operates on strings.....
> > 
> > --- 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
> > > 
> > > 
> > > 
> > > 
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> > protection around 
> > http://mail.yahoo.com 
> > 
> > 
> > 
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 
> 
> 
> 
> 



                
_______________________________
Do you Yahoo!?
Express yourself with Y! Messenger! Free. Download now. 
http://messenger.yahoo.com





------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/EbFolB/TM
--------------------------------------------------------------------~-> 

To unsubscribe : [EMAIL PROTECTED]

 
Yahoo! Groups Links

<*> To reply to this message, go to:
    http://groups.yahoo.com/group/Programmers-Town/post?act=reply&messageNum=3648
    Please do not reply to this message via email. More information here:
    http://help.yahoo.com/help/us/groups/messages/messages-23.html

<*> 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:
    http://docs.yahoo.com/info/terms/
 



Reply via email to