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

Function format_code_offset

src/stat.c:1114–1124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1112}
1113
1114ATTRIBUTE_PURE
1115static size_t
1116format_code_offset (char const *directive)
1117{
1118 size_t len = strspn (directive + 1, printf_flags);
1119 char const *fmt_char = directive + len + 1;
1120 fmt_char += strspn (fmt_char, digits);
1121 if (*fmt_char == '.')
1122 fmt_char += 1 + strspn (fmt_char + 1, digits);
1123 return fmt_char - directive;
1124}
1125
1126/* Print the information specified by the format string, FORMAT,
1127 calling PRINT_FUNC for each %-directive encountered.

Callers 2

print_itFunction · 0.85
format_to_maskFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected