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

Function read_char

src/od.c:1374–1388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1372 true if successful. */
1373
1374static bool
1375read_char (int *c)
1376{
1377 bool ok = true;
1378
1379 *c = EOF;
1380
1381 while (in_stream && (*c = getc (in_stream)) < 0)
1382 {
1383 ok &= check_and_close (errno);
1384 ok &= open_next_file ();
1385 }
1386
1387 return ok;
1388}
1389
1390/* Read N bytes into BLOCK from the concatenation of the input files
1391 named in the global array FILE_LIST. On the first call to this

Callers 1

dump_stringsFunction · 0.85

Calls 2

check_and_closeFunction · 0.85
open_next_fileFunction · 0.85

Tested by

no test coverage detected