src/projects/libc/stdio/printf.c
static bool print(const char* data, size_t length) {
	const unsigned char* bytes = (const unsigned char*) data;
	for (size_t i = 0; i < length; i++)
		if (putchar(bytes[i]) == EOF)
			return false;
	return true;
}
/*
 * Print bytes from an array.
 *
 * This prints up to length bytes of from data, it will stop and return false if EOF is encountered. The EOF will be
 * the last byte printed. It will still return false when hitting an EOF, even if that was the last byte to be printed
 * anyways.
 */
Print bytes from an array.
This prints up to length bytes of from data, it will stop and return false if EOF is encountered. The EOF will be
the last byte printed. It will still return false when hitting an EOF, even if that was the last byte to be printed
anyways.
Print bytes from an array . This prints up to length bytes of from data it will stop and return false if EOF is encountered . The EOF will be the last byte printed . It will still return false when hitting an EOF even if that was the last byte to be printed anyways .
static bool print(const char* data, size_t length) {
	const unsigned char* bytes = (const unsigned char*) data;
	for (size_t i = 0; i < length; i++)
		if (putchar(bytes[i]) == EOF)
			return false;
	return true;
}
static bool print ( const char * data , size_t length ) { const unsigned char * bytes = ( const unsigned char * ) data ; for ( size_t i = 0 ; i < length ; i ++ ) if ( putchar ( bytes [ i ] ) == EOF ) return false ; return true ; }
Print bytes from an array.
Print bytes from an array .