C / string.h / memset
memchr, memcmp, memcpy, memmove, » memset, strcat, strchr, strcmp, strcoll, strcpy, strcspn, strerror, strlen, strncat, strncmp, strncpy, strpbrk, strrchr, strspn, strstr, strtok, strxfrm,
Funcion: memset()
Sintaxis:
void *memset(void *s, int c, size_t n);

Descripcion: Copia el valor de c (convertido a unsigned char) en cada uno de los primeros n caracteres en el objeto apuntado por s.


Ejemplo:
#include <stdio.h>
#include <string.h>
 
int main()
{
   char c = 'F';
   char *s;
   int i;
 
   s = (char*)malloc(5*sizeof(char));
   memset( s, c, 5 );
   for( i=0; i<5; i++ )
     printf( "c[%d]=%c ", i, c );
   printf( "\n" );
   free(s);
   return 0;
}

Librerias C

Librerias ANSI C
   string.hcstring
   math.hcmath
   stdio.hcstdio
   time.hctime
   stdlib.hcstdlib
   ctype.hcctype
   locale.hclocale
   signal.hcsignal
   setjmp.hcsetjmp

Librerias Borland
   conio.h
   graphics.h