strinit man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

STRINIT(3)		     C Programmer's Manual		    STRINIT(3)

NAME
       strinit - initialize a string with a given character to a given length

SYNOPSIS
       #include <publib.h>
       char *strinit(char *s, int c, size_t len) {

DESCRIPTION
       strinit 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 VALUE
       strinit will return s.

EXAMPLE
       To  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 '\0' */
	    strinit(string, '_', 20);

SEE ALSO
       publib(3)

AUTHOR
       Lars Wirzenius (lars.wirzenius@helsinki.fi)

Publib			     C Programmer's Manual		    STRINIT(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net