repo.or.cz
/
opsoft_test.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
current version
[opsoft_test.git]
/
gclib2
/
modules
/
Misc
/
Pack
/
pack_countBList.cxx
blob
5201c82c40bd14282f9898fa8f91a01741481873
1
/*
2
* (c) Oleg Puchinin 2008
3
* graycardinalster@gmail.com
4
*
5
*/
6
7
#include <gclib2.h>
8
#include <stdarg.h>
9
#include <Pkt.h>
10
11
int
pack_countBList
(
List
*
m_list
)
12
{
13
Buf
*
b
;
14
int
i
=
0
;
15
16
if
(!
m_list
)
17
return
0
;
18
19
m_list
->
first
();
20
while
(
true
) {
21
b
= (
Buf
*)
m_list
->
get
();
22
if
(!
b
)
23
break
;
24
i
+=
b
->
len
();
25
m_list
->
next
();
26
}
27
28
return
i
;
29
}
30