Comment on Tutorial - Using memset(), memcpy(), and memmove() in C By Emiley J



Comment Added by : Doniv

Comment Added at : 2011-12-15 10:10:52

Comment on Tutorial : Using memset(), memcpy(), and memmove() in C By Emiley J
To 25
void *memset( void *buffer, int ch, size_t count );

The function memset() copies ch into the first count characters of buffer, and returns buffer. memset() is useful for intializing a section of memory to some value. For example, this command:
memset( the_array, '\0', sizeof(the_array) );

is a very efficient way to set all values of the_array to zero.

Basically memset() is used while initialing array of characters or string.


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. thanks becase i am very confuse what is work how t
View Tutorial          By: arvind at 2011-01-09 14:41:42

2. The code sample in this tutorial is good. It would
View Tutorial          By: Anon at 2009-06-05 03:36:59

3. The following line in the code
((NewThread)

View Tutorial          By: Carlos at 2009-11-18 14:34:51

4. Thanks lot.Its working good...... thanks lot lot..
View Tutorial          By: Mohanraj at 2011-12-07 05:23:26

5. Seriously very nice explanation.... Thank You
View Tutorial          By: Pulkit agrawal at 2012-03-20 10:28:10

6. Great!
Thnks for your help..

View Tutorial          By: ramu at 2011-06-18 07:56:56

7. very good tutorial
View Tutorial          By: Anonymous at 2009-06-13 01:14:25

8. Hi, If any body was able to send the message suces
View Tutorial          By: Pradeep Singh Chouhan at 2011-03-02 23:03:05

9. Hi got an error while executing :

j

View Tutorial          By: Hi, at 2009-07-06 01:09:35

10. It tried this app... It's working fine... really a
View Tutorial          By: Prakash at 2012-01-04 06:33:12