![]() |
![]()
| ![]() |
![]()
NAMEstrinit - initialize a string with a given character to a given length SYNOPSIS#include <publib.h> char *strinit(char *s, int c, size_t len) { DESCRIPTIONstrinit initializes the string pointed to by s to be of length len, all characters being c, where the terminating '\0' is not included in the length, i.e., the string will use len+1 characters. RETURN VALUEstrinit will return s. EXAMPLETo initialize a string to consist of twenty underscores, one would do the following.
SEE ALSOpublib(3) AUTHORLars Wirzenius (lars.wirzenius@helsinki.fi)
|