kernels/linux-2.4.0/scripts/cramfs/mkcramfs.c
/*
 * Returns non-zero iff the first LEN bytes from BEGIN are all NULs.
 */
Returns non-zero iff the first LEN bytes from BEGIN are all NULs.
Returns non - zero iff the first LEN bytes from BEGIN are all NULs .
static int
is_zero(char const *begin, unsigned len)
{
	return (len-- == 0 ||
		(begin[0] == '\0' &&
		 (len-- == 0 ||
		  (begin[1] == '\0' &&
		   (len-- == 0 ||
		    (begin[2] == '\0' &&
		     (len-- == 0 ||
		      (begin[3] == '\0' &&
		       memcmp(begin, begin + 4, len) == 0))))))));
}
static int is_zero ( char const * begin , unsigned len ) { return ( len -- == 0 || ( begin [ 0 ] == ' \0 ' && ( len -- == 0 || ( begin [ 1 ] == ' \0 ' && ( len -- == 0 || ( begin [ 2 ] == ' \0 ' && ( len -- == 0 || ( begin [ 3 ] == ' \0 ' && memcmp ( begin , begin + 4 , len ) == 0 ) ) ) ) ) ) ) ) ; }
Returns non-zero iff the first LEN bytes from BEGIN are all NULs.
Returns non - zero iff the first LEN bytes from BEGIN are all NULs .