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

Function insertkey

src/sort.c:4280–4290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4278/* Insert a malloc'd copy of key KEY_ARG at the end of the key list. */
4279
4280static void
4281insertkey (struct keyfield *key_arg)
4282{
4283 struct keyfield **p;
4284 struct keyfield *key = xmemdup (key_arg, sizeof *key);
4285
4286 for (p = &keylist; *p; p = &(*p)->next)
4287 continue;
4288 *p = key;
4289 key->next = NULL;
4290}
4291
4292/* Report a bad field specification SPEC, with extra info MSGID. */
4293

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected