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 |
---|
fnqualify(3pub) - debian |
memdup(3pub) - debian |
xmalloc(3pub) - debian |
xmemdup(3pub) - debian |
xstrdup(3pub) - debian |
Similar Topics in the Unix Linux Community |
---|
awk or sed - Convert 2 lines to 1 line |
How can I do this in VI editor? |
Introduction |
One instance of comparing grep and awk |
A (ksh) Library For and From UNIX.com |