pike.git/
src/
builtin.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2008-06-29
2008-06-29 18:01:57 by Martin Nilsson <mani@lysator.liu.se>
aff1971585990b0923448ac1a915793e5b8afaf1 (
15
lines) (+
14
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
String.secure
Rev: lib/modules/String.pmod/module.pmod:1.30
Rev: src/builtin.cmod:1.218
2:
|| This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information.
-
|| $Id: builtin.cmod,v 1.
217
2008/06/29
12
:
37
:
10
nilsson Exp $
+
|| $Id: builtin.cmod,v 1.
218
2008/06/29
17
:
57
:
01
nilsson Exp $
*/ #include "global.h"
645:
RETURN mkmapping(ind, val); }
+
/*! @decl void secure(string str)
+
*! @belongs String
+
*!
+
*! Marks the string as secure, which will clear the memory area
+
*! before freeing the string.
+
*/
+
PIKEFUN void secure(string str)
+
optflags OPT_SIDE_EFFECT;
+
{
+
str->flags |= STRING_CLEAR_ON_EXIT;
+
}
+
/*! @decl int count(string haystack, string needle) *! @belongs String *!