Results 1 to 5 of 5

Thread: C : What is the memset()

  1. #1
    Join Date
    Dec 2009
    Posts
    25

    C : What is the memset()

    Hi, How are you all. I am the student of the Information Technology. I have the knowledge of the C language. But I don't know much more about the Memory Manipulation functions. So, I would like to know about the memset() Function. I would also like to know about how can I implement the memset() function and what is the actual purpose of the memset() function. If anyone knows about the my query then reply me.
    Last edited by Gaelic; 01-02-2010 at 07:31 PM.

  2. #2
    Join Date
    Nov 2005
    Posts
    1,323

    C : What is the memset()

    The following program helps you to understand memset() function :
    #include <string.h>
    void main()
    {
    char buffer[90];
    memset( bfr, '=', 90 );
    }

  3. #3
    Join Date
    Oct 2005
    Posts
    2,393

    C : memset()

    The following is the syntax of the memset() function :
    #include <string.h>
    void *memset( void *ds, int d, si_u lnt );
    void __far *_fmemset( void fr *ds, int d, si_u lnt );
    n the above syntax, The object pointed to ds with the value of d can be filled by the memset() function at the firsty character length.

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    The memset()

    According to my knowledge about memset() function of C language, The memset() function can copy the value of the character that can be specified by the parameter which can be converted into an char unsigned into each and every first m locations of the string pointed to by the r parameter. I hope you should understood from this explanation. If till you did not understand then reply me.

  5. #5
    Join Date
    Feb 2008
    Posts
    1,852

    C : What is the memset()

    The memset() function can be used to initialize a memory block to a specified value. The memset() function can only uses type char for the initialization value. Except whenever you would like to initialize to 0, It can not be useful while working with blocks of data types other than type char. The memset() function can returns the pointer to the destination buffer. The memset() function can be a one of the function that can also be defined as macros.

Similar Threads

  1. MemSet for AMD A64
    By Valliy in forum Overclocking & Computer Modification
    Replies: 8
    Last Post: 25-07-2010, 05:28 AM
  2. Memset 3.5 not working on p45
    By Angelica Maria in forum Overclocking & Computer Modification
    Replies: 6
    Last Post: 15-07-2010, 05:54 AM
  3. MemSet on AMD Phenom II 965BE
    By Lauren Ambrose in forum Overclocking & Computer Modification
    Replies: 6
    Last Post: 13-07-2010, 06:31 AM
  4. How do I remove MemSet
    By Patricia-USA in forum Software Development
    Replies: 5
    Last Post: 13-07-2010, 03:18 AM
  5. MemSet 3.0 & DS3 Settings
    By Gillian Anderson in forum Overclocking & Computer Modification
    Replies: 6
    Last Post: 11-07-2010, 02:08 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,853,263.70266 seconds with 16 queries