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. Bad article ! What about the explanation of Messag
View Tutorial          By: Manish at 2011-05-24 04:44:03

2. can you provide the full class from start to begin
View Tutorial          By: mohit at 2011-12-01 09:56:22

3. hi this is from Ashok....
can you send the

View Tutorial          By: Ashok at 2015-04-16 11:51:51

4. Create a lexical analyzer of the C- programming la
View Tutorial          By: lucky at 2011-05-06 23:05:22

5. Thanks !
View Tutorial          By: Swaran at 2010-02-02 23:50:13

6. Its tooo good to others.......& easy
View Tutorial          By: Abhishek at 2010-03-31 23:57:07

7. can anyone explain the output of this recursive ex
View Tutorial          By: vipul at 2012-08-12 19:41:19

8. I do not understand this line:
Map.Entry me

View Tutorial          By: hap Og at 2011-11-03 01:42:33

9. Thanks for the above code. I am not sure whether t
View Tutorial          By: Koolkabin at 2010-08-20 01:11:27

10. That was nice.
View Tutorial          By: Arnab at 2007-10-17 02:02:11