memset( ) function: set the contents of a string buffer.
#include <stdio.h> #include <string.h> char buf[20]; int main( ) { printf("The contents of buf: %s",memset(buf,'+',15)); buf[15] = '\0'; return (0); }