I'm rusty too but to me it looks like if more than one element
(line) is in the array, it walks through the array and returns an
error if any entry is not for the same chip as the first element.
I did not look for the structs that make up the elements.
Nice to see some defensive programming...
If I compare two pointers to the same variable, it seems to me that the two
pointers should match. It has been too many years of not programming for me to
be sure. I couldn’t find the function “gpiod_line_bulk_get_line” so I can’t
really tell what pointer it is returning.
Alan
> On Jul 27, 202
On Thu, 27 Jul 2023 at 01:24, andy pugh wrote:
> I think that this is comparing two pointers to the same struct. But
> they won;t ever match as they are different variables?
Or. alternatively, I had been staring at the screen too long and my
brain was frazzled.
--
atp
"A motorcycle is a bicycl