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

Function has_uuid_suffix

src/df.c:917–924  ·  view source on GitHub ↗

Return true if S ends in a string that may be a 36-byte UUID, i.e., of the form HHHHHHHH-HHHH-HHHH-HHHH-HHHHHHHHHHHH, where each H is an upper or lower case hexadecimal digit. */

Source from the content-addressed store, hash-verified

915 i.e., of the form HHHHHHHH-HHHH-HHHH-HHHH-HHHHHHHHHHHH, where
916 each H is an upper or lower case hexadecimal digit. */
917ATTRIBUTE_PURE
918static bool
919has_uuid_suffix (char const *s)
920{
921 size_t len = strlen (s);
922 return (36 < len
923 && strspn (s + len - 36, "-0123456789abcdefABCDEF") == 36);
924}
925
926/* Obtain the block values BV and inode values IV
927 from the file system usage FSU. */

Callers 1

get_devFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected