Query: strinit
OS: debian
Section: 3pub
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
STRINIT(3pub) C Programmer's Manual STRINIT(3pub)NAMEstrinit - initialize a string with a given character to a given lengthSYNOPSIS#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 ' ' 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. #include <publib.h> char string[21]; /* note 21 to make room for ' ' */ strinit(string, '_', 20);SEE ALSOpublib(3)AUTHORLars Wirzenius (lars.wirzenius@helsinki.fi) Publib C Programmer's Manual STRINIT(3pub)
Related Man Pages |
---|
memshuffle(3pub) - debian |
stracat(3pub) - debian |
strcstr(3pub) - debian |
xmalloc(3pub) - debian |
xrealloc(3pub) - debian |
Similar Topics in the Unix Linux Community |
---|
Installing Dash Shell on OS X Lion |
Introduction |
Detecting unused variables... |
One instance of comparing grep and awk |
New UNIX and Linux History Sections |