I saw this expression before in some code.
As you know, the expression "if ((ret = func()) == -1)"if ((ret = func()) == -1)
is the same as "
ret = func();
if (ret == -1)"
ret = func();
if (ret == -1)
but it is not a good recommendation for the C programmer.