P
pembed2012
In that case just rewrite it. That will be more reliable in the long
term. And you can take the opportunity to add some comments.
But you will need a specification, or know how it fits into the bigger
picture. Those hard-coded array bounds are a bit worrying, and confusing
too with one set of arrays having a length of 11, and an upper bound of
10, and another set having a length of 10, and an upper bound of 9...
I will do this if someone can explain me in simple terms what this
function is doing. The documentation just say it implements a work queue,
11 is the max wait.
Also John Gordon is correct that -1 is considered a sentinal value.
However I would like to know exactly what input arrays are acceptable and
lead to no segfault.
Thanks for you're interest.