Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
fmt_strm_alloca(3)	   Library Functions Manual	    fmt_strm_alloca(3)

NAME
       fmt_strm_alloca - write multiple	ASCII strings

SYNTAX
       #include	<libowfat/fmt.h>

       char* fmt_strm_alloca(const char	*source, ...);

DESCRIPTION
       fmt_strm_alloca	copies	all leading nonzero bytes from source and fol-
       lowing function arguments to a freshly allocated	stack buffer  and  re-
       turns a pointer to it.

       Unlink fmt_strm,	fmt_strm_alloca	does append \0.

       Warning:	Using variable size stack buffers is dangerous.	If the size of
       the  buffer  is larger than the hardware	page size, then	it can be used
       to skip over the	guard page and cause memory  corruption.  fmt_strm_al-
       loca  has a built-in limit of 100000 bytes. Use this only for trivially
       small strings.

       If the strings do not come from a trusted place or  you	are  not  sure
       they are	small, prefer fmt_strm_malloc instead.

SEE ALSO
       fmt_str(3), fmt_strm(3),	fmt_strm_malloc(3), alloca(3), strcpy(3)

							    fmt_strm_alloca(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=libowfat_fmt_strm_alloca&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>

home | help