Compare A and B with lengths A_LEN and B_LEN. A and B are integers represented by nonempty arrays of digits without redundant leading '0'. Return negative if A < B, 0 if A = B, positive if A > B. */
| 435 | represented by nonempty arrays of digits without redundant leading '0'. |
| 436 | Return negative if A < B, 0 if A = B, positive if A > B. */ |
| 437 | static int |
| 438 | cmp (char const *a, idx_t a_len, char const *b, idx_t b_len) |
| 439 | { |
| 440 | return a_len == b_len ? memcmp (a, b, a_len) : _GL_CMP (a_len, b_len); |
| 441 | } |
| 442 | |
| 443 | /* Trim leading 0's from S, but if S is all 0's, leave one. |
| 444 | Return a pointer to the trimmed string. */ |
no outgoing calls
no test coverage detected