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. Hi every one. I am working on my project in j2me a
View Tutorial          By: wazir at 2010-11-26 08:27:43

2. i need java simple programs
View Tutorial          By: Tharani at 2010-01-22 06:39:25

3. Respected Sir,
We are

View Tutorial          By: Core Java at 2009-10-24 01:36:20

4. hai
View Tutorial          By: ayyannan at 2011-01-21 21:27:35

5. Please don't use DataInputStream to read text. Unf
View Tutorial          By: Peter Lawrey at 2013-01-30 23:46:47

6. thanks a lot ..
View Tutorial          By: indra at 2009-03-25 15:40:03

7. how can get ip url...?
View Tutorial          By: arjuna at 2011-11-23 03:31:46

8. please send basic sample programs & explanatio
View Tutorial          By: rose at 2013-01-16 04:43:38

9. hi please help me out.. how to use this card for r
View Tutorial          By: sasivarnan at 2011-04-27 15:01:12

10. To make this work with out error I had to add:
View Tutorial          By: Jester at 2009-03-26 15:25:59