octave/av0.m

function a = av0(c)
  global cnt
  global sm 
  cnt = 0
  sm = 0
  a = av(c)
endfunction