[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
Function strrep - replicate a char
Syntax char *strrep(char c, int len);
Prototype in stringhk.h
Remarks strrep creates a string len long entirely of
character c.
Return value returns a pointer to the storage location
containing the newly replicated string, or NULL if
space could not be allocated.
Example #include <stringhk.h>
#include <stdio.h> /* for the printf */
main()
{
char *rep;
printf("%s\n",rep = strrep('k',7));
}
Program output kkkkkkk
See Also:
strfill()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson