iio.c
// read a RAW image specified by the IIO_RAW environment
// caveat: the image *must* be a named file, not a pipe
// (this is for simplicity of the implementation, this restriction can be
// removed when necessary)
read a RAW image specified by the IIO_RAW environment
caveat: the image *must* be a named file, not a pipe
(this is for simplicity of the implementation, this restriction can be
removed when necessary)
read a RAW image specified by the IIO_RAW environment caveat : the image * must * be a named file not a pipe ( this is for simplicity of the implementation this restriction can be removed when necessary )
static int read_beheaded_raw(struct iio_image *x,
		FILE *f, char *header, int nheader)
{
	(void)f; (void)header; (void)nheader;
	const char *fn;
	fn = global_variable_containing_the_name_of_the_last_opened_file;
	if (!fn)
		return 1;
	char *rp = getenv("IIO_RAW");
	if (!rp)
		return 2;
	char buf[FILENAME_MAX];
	snprintf(buf, FILENAME_MAX, "RAW[%s]:%s", rp, fn);
	IIO_DEBUG("simulating read of filename \"%s\"\n", buf);
	return read_raw_named_image(x, buf);
}
static int read_beheaded_raw ( struct iio_image * x , FILE * f , char * header , int nheader ) { ( void ) f ; ( void ) header ; ( void ) nheader ; const char * fn ; fn = global_variable_containing_the_name_of_the_last_opened_file ; if ( ! fn ) return 1 ; char * rp = getenv ( " " ) ; if ( ! rp ) return 2 ; char buf [ FILENAME_MAX ] ; snprintf ( buf , FILENAME_MAX , " " , rp , fn ) ; IIO_DEBUG ( " \" \" \n " , buf ) ; return read_raw_named_image ( x , buf ) ; }
read a RAW image specified by the IIO_RAW environment
caveat: the image *must* be a named file, not a pipe
(this is for simplicity of the implementation, this restriction can be
removed when necessary)
read a RAW image specified by the IIO_RAW environment caveat : the image * must * be a named file not a pipe ( this is for simplicity of the implementation this restriction can be removed when necessary )