Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/tools/coccinelle/xstrncmpz.cocci # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / tools / coccinelle / xstrncmpz.cocci` 28 lines ยท 478 bytes Raw Blame History 1 @@ 2 expression S, T, L; 3 @@ 4 ( 5 - strncmp(S, T, L) || S[L] 6 + !!xstrncmpz(S, T, L) 7 | 8 - strncmp(S, T, L) || S[L] != '\0' 9 + !!xstrncmpz(S, T, L) 10 | 11 - strncmp(S, T, L) || T[L] 12 + !!xstrncmpz(T, S, L) 13 | 14 - strncmp(S, T, L) || T[L] != '\0' 15 + !!xstrncmpz(T, S, L) 16 | 17 - !strncmp(S, T, L) && !S[L] 18 + !xstrncmpz(S, T, L) 19 | 20 - !strncmp(S, T, L) && S[L] == '\0' 21 + !xstrncmpz(S, T, L) 22 | 23 - !strncmp(S, T, L) && !T[L] 24 + !xstrncmpz(T, S, L) 25 | 26 - !strncmp(S, T, L) && T[L] == '\0' 27 + !xstrncmpz(T, S, L) 28 )