memset c
/* memset example */
#include <stdio.h>
#include <string.h>
int main ()
{
char str[] = "almost every programmer should know memset!";
memset (str,'-',6);
puts (str);
return 0;
}
// Output:
// ------ every programmer should know memset!#include <stdio.h>
#include <string.h>
int main () {
char str[50];
strcpy(str,"This is string.h library function");
puts(str);
memset(str,'$',7);
puts(str);
return(0);
}// memset syntax
void * memset ( void * ptr, int value, size_t num );This is string.h library function
$$$$$$$ string.h library function
void *memset(void *str, int c, size_t n)
Also in C:
- how to change the mapping from jkil to wasd in vim
- main function in c
- Write a C program to add negative values among N values using 2D array and pointer
- plt circle
- program to concatenate two strings in c
- passing 2d array as parameter to function in c
- C comment
- error 403
- docker logs follow
- c program to swap two arrays
- arduino server read
- find the largest number in else if javascript
- how to go to top of file in vim
- visa germany algeria
- c read a whole string from a file
- get a remote branch git
- two bytes to int c
- matplotlib pyplot legend location
- how to change the value of a node in a linked list in c
- how do pointers work in c programmwiz
- insertion singly linked list in c
- _CRT_SECURE_NO_WARNINGS
- how can i show ant text by onclick
- sum of array in c