MCPcopy Create free account
hub / github.com/eggert/tz / same_parent_dirs

Function same_parent_dirs

zic.c:1719–1727  ·  view source on GitHub ↗

Return true if A and B must have the same parent dir if A and B exist. Return false if this is not necessarily true (though it might be true). Keep it simple, and do not inspect the file system. */

Source from the content-addressed store, hash-verified

1717 result = xmalloc(dotdotetcsize);
1718 cp = result;
1719 for (i = 0; i < dotdots; i++)
1720 cp = mempcpy(cp, "../", 3);
1721 memmove(cp, f + dir_len, taillen + 1);
1722 }
1723 return result;
1724}
1725
1726/* Return true if A and B must have the same parent dir if A and B exist.
1727 Return false if this is not necessarily true (though it might be true).
1728 Keep it simple, and do not inspect the file system. */
1729ATTRIBUTE_PURE_114833
1730static bool

Callers 1

dolinkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected