C or c is the third letter in the English and ISO basic Latin alphabets.Its name in English is cee (pronounced / ˈ s iː /), plural cees. C- (pronounced cee minus minus) is a C -like programming language. Its creators, functional programming researchers Simon Peyton Jones and Norman Ramsey, designed it to be generated mainly by compilers for very high-level languages rather than written by human programmers. Axife mouse recorder 5.0 1.
- The C Standard Library
- C Standard Library Resources
- C Programming Resources
- Selected Reading
Description
The C library function void *memset(void *str, int c, size_t n) copies the character c (an unsigned char) to the first n characters of the string pointed to, by the argument str.
Declaration
Following is the declaration for memset() function. Vaanam vasappadum book pdf free. download full.
Parameters
str − This is a pointer to the block of memory to fill.
c − This is the value to be set. The value is passed as an int, but the function fills the block of memory using the unsigned char conversion of this value.
n Hiren's bootcd download full version. − This is the number of bytes to be set to the value.
Return Value
This function returns a pointer to the memory area str.
Example
The following example shows the usage of memset() function.
C-diff Bacteria Infection
Let us compile and run the above program that will produce the following result −