zeek/doc/scripting/data_struct_vector_declaration.bro
Jon Siwek 191e5da74d Documentation fixes.
BIT-1272 #close
2014-10-14 14:43:08 -05:00

15 lines
341 B
Text

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 v2: %s", v2);
print fmt("length of v2: %d", |v2|);
}