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



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. the exampe was really useful........
View Tutorial          By: smitha at 2011-03-10 21:27:55

2. i want to study c-programming language
View Tutorial          By: rajesh at 2008-07-27 07:43:09

3. It is very useful for me guyzz......thanx.......:-
View Tutorial          By: Rajesh at 2012-09-29 10:11:45

4. its very helpful for us...and useful too.
View Tutorial          By: roy at 2011-06-15 15:32:22

5. thank you very much...
Explained in a simpl

View Tutorial          By: vineela at 2013-02-18 10:29:08

6. hello everyone... I am getting the error "sms
View Tutorial          By: umar at 2010-12-19 04:20:33

7. Thanks.
View Tutorial          By: Joe at 2011-12-07 11:41:14

8. java.lang.IllegalArgumentException
at java

View Tutorial          By: gopal at 2011-03-21 00:45:51

9. Hello to Every one!! :-),HERE I'AM NOT WRITING A C
View Tutorial          By: Pulkit Malviya at 2012-08-26 14:56:18

10. better if it is explained with output of the progr
View Tutorial          By: dinesh at 2013-05-05 13:57:21