… | |
… | |
434 | Returns the positive remainder of the modulo operation between C<m> and |
434 | Returns the positive remainder of the modulo operation between C<m> and |
435 | C<n>. Unlike the C modulo operator C<%>, this function ensures that the |
435 | C<n>. Unlike the C modulo operator C<%>, this function ensures that the |
436 | return value is always positive - ISO C guarantees very little when |
436 | return value is always positive - ISO C guarantees very little when |
437 | negative numbers are used with C<%>. |
437 | negative numbers are used with C<%>. |
438 | |
438 | |
439 | C<n> must be strictly positive (i.e. C<< >1 >>), while C<m> must be |
439 | C<n> must be strictly positive (i.e. C<< >= 1 >>), while C<m> must be |
440 | negatable, that is, both C<m> and C<-m> must be representable in its |
440 | negatable, that is, both C<m> and C<-m> must be representable in its |
441 | type. |
441 | type. |
442 | |
442 | |
443 | =back |
443 | =back |
444 | |
444 | |
445 | =head2 UTILITY |
445 | =head2 UTILITY |
446 | |
446 | |
447 | =over 4 |
447 | =over 4 |
448 | |
448 | |
449 | =item element_count = ecb_array_length (name) [MACRO] |
449 | =item element_count = ecb_array_length (name) |
450 | |
450 | |
451 | Returns the number of elements in the array C<name>. For example: |
451 | Returns the number of elements in the array C<name>. For example: |
452 | |
452 | |
453 | int primes[] = { 2, 3, 5, 7, 11 }; |
453 | int primes[] = { 2, 3, 5, 7, 11 }; |
454 | int sum = 0; |
454 | int sum = 0; |