]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
Further refinements of discussion of when to use/not use alloca().
authorMichael Kerrisk <mtk.manpages@gmail.com>
Wed, 30 Jan 2008 10:16:44 +0000 (10:16 +0000)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Wed, 30 Jan 2008 10:16:44 +0000 (10:16 +0000)
man3/alloca.3

index 1093efd1d9379c4e2741c498218280779704a7c8..4a88392cba6bdea7ad3c4d8dd6610154cbdf230b 100644 (file)
@@ -72,7 +72,17 @@ Linux uses the GNU version.
 The
 .BR alloca ()
 function is machine- and compiler-dependent.
-Its use is discouraged.
+For certain applications,
+its use can improve efficiency compared to the use of
+.BR malloc(3)
+plus
+.BR free (3).
+In certain cases,
+it can also simplify memory deallocation in applications that use
+.BR longjmp (3)
+or
+.BR siglongjmp (3).
+Otherwise, its use is discouraged.
 
 Because the space allocated by
 .BR alloca ()