GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
fmt_strm_alloca(3) FreeBSD Library Functions Manual fmt_strm_alloca(3)

fmt_strm_alloca - write multiple ASCII strings

#include <libowfat/fmt.h>

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

fmt_strm_alloca copies all leading nonzero bytes from source and following function arguments to a freshly allocated stack buffer and returns 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_alloca 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.

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


Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.