C/Memory/Memory Set — различия между версиями
Admin (обсуждение | вклад) м (1 версия: Импорт контента...) |
Admin (обсуждение | вклад) м (1 версия: Импорт контента...) |
(нет различий)
|
Текущая версия на 13:22, 25 мая 2010
Fill buffer with specified character: how to use memset
<source lang="cpp">
- include <stdio.h>
- include <string.h>
int main () {
char str[] = "memset is memset."; puts (str); memset (str,"-",6); puts (str); return 0;
}
</source>
Memory set
<source lang="cpp">
- include <stdio.h>
- include <string.h>
int main(void) {
char *p; p = memchr("this is a test", " ", 14); printf(p); return 0;
}
</source>