PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [Cs323] 0 code on Hwk4/decode
Date: Saturday, 07 Nov 2020, 07:38:40


    > Message Posted By: Unknown
    >
    > Does code 0 cause a valgrind error for /c/cs323/Hwk4/decode?
    >
    > If I have a file with:
    > 12
    > 0
    > 0
    >
    > and I run STAGE=1 /c/cs323/Hwk4/decode < FILE, then it outputs an error
    > for the second code. I assume 0 is in the table so it wouldn't cause a
    > valgrind error specifically?

I do not get a valgrind error:

  $ cat z
  12
  0
  0
  $ STAGE=1 valgrind -q /c/cs323/Hwk4/decode < z
  decode: invalid code 0

Are you getting a different result?

--Stan-
PREV INDEX NEXT