MCPcopy Index your code
hub / github.com/coreutils/coreutils / alloc_field

Function alloc_field

src/df.c:411–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409 can then be accessed with standard array notation. */
410
411static void
412alloc_field (int f, char const *c)
413{
414 if (ncolumns == ncolumns_alloc)
415 columns = xpalloc (columns, &ncolumns_alloc, 1, -1, sizeof *columns);
416 columns[ncolumns++] = &field_data[f];
417 if (c != NULL)
418 field_data[f].caption = c;
419
420 affirm (!field_data[f].used);
421
422 /* Mark field as used. */
423 field_data[f].used = true;
424}
425
426
427/* Given a string, ARG, containing a comma-separated list of arguments

Callers 2

decode_output_argFunction · 0.85
get_field_listFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected