mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Going over initial parts of the scripting overview.
I made a light pass over the text. Switched the includes over to the new btest-include and adapted the other TEXT-EXECs a bit. Also includes more tweaking all over the Sphinx setup.
This commit is contained in:
parent
f8c9d5e3d3
commit
b74bf10565
169 changed files with 2421 additions and 804 deletions
15
doc/scripting/data_struct_vector_declaration.bro
Normal file
15
doc/scripting/data_struct_vector_declaration.bro
Normal file
|
@ -0,0 +1,15 @@
|
|||
event bro_init()
|
||||
{
|
||||
local v1: vector of count;
|
||||
local v2 = vector(1, 2, 3, 4);
|
||||
|
||||
v1[|v1|] = 1;
|
||||
v1[|v1|] = 2;
|
||||
v1[|v1|] = 3;
|
||||
v1[|v1|] = 4;
|
||||
|
||||
print fmt("contents of v1: %s", v1);
|
||||
print fmt("length of v1: %d", |v1|);
|
||||
print fmt("contents of v1: %s", v2);
|
||||
print fmt("length of v2: %d", |v2|);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue