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. i understand but i want many information and prog
View Tutorial          By: malathi at 2013-03-29 23:52:28

2. "Type safety: The method add(Object) belongs
View Tutorial          By: WalterB Ntuli at 2010-04-09 01:51:17

3. two of them are equal and third one is less than b
View Tutorial          By: nani at 2011-10-28 10:55:58

4. thanks....good explanation...
View Tutorial          By: jiby at 2012-01-14 05:57:33

5. How to display the ARP Mapping Table of a given ho
View Tutorial          By: Hala at 2013-11-15 22:42:36

6. please correct things....and plz dont misguide
View Tutorial          By: amit verma at 2015-02-19 08:44:55

7. Having this error while using comm.jsr for sending
View Tutorial          By: Amit Kumar at 2013-10-15 09:04:58

8. Guys can you send me complete program for recievei
View Tutorial          By: KEVIN at 2011-06-10 21:52:04

9. can help me for program in java Tomorrow I have ex
View Tutorial          By: blasm at 2013-06-21 06:59:41

10. thanks. that was fair enough. :)
View Tutorial          By: Mustafa at 2010-05-16 10:12:33