MCPcopy Create free account
hub / github.com/coreutils/coreutils / get_next_out

Function get_next_out

src/tee.c:195–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193 or -1 if all are null. */
194
195ATTRIBUTE_PURE
196static int
197get_next_out (int *descriptors, int nfiles, int idx)
198{
199 for (idx++; idx <= nfiles; idx++)
200 if (0 <= descriptors[idx])
201 return idx;
202 return -1; /* no outputs remaining */
203}
204
205/* Remove descriptors[i] due to write failure or broken pipe.
206 Return true if this indicates a reportable error. */

Callers 1

tee_filesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected