can yu explain me what this popandtest() function is doing and what is the use of und
Without seeing the code of popandtest it is impossible to know. und appears to be set by popandtest to some value, i.e. it is an output/return value of the function. Possibly boolean content, although type is int.