Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

xil_create_from_device(3)

xil_create_from_window(3)

xil_get_readable(3)

NAME

xil_get_readable, xil_get_writable − return TRUE if an image can be used as a source or destination

SYNOPSIS

#include <xil/xil.h>

Xil_boolean  xil_get_readable (XilImage image);

Xil_boolean  xil_get_writable (XilImage image);

DESCRIPTION

xil_get_readable() returns TRUE if an image can be used as a source.  Some device images cannot be used as source images. 

xil_get_writable() returns TRUE if an image can be used as a destination.  Some device images cannot be used as destination images. 

ERRORS

For a complete list of XIL error messages by number, consult Appendix B of the XIL Programmer’s Guide. 

EXAMPLES

Determine whether a particular image can be used as a source:

XilImage image, src;
Xil_boolean isreadable;
isreadable = xil_get_readable(image);
if(isreadable)
   src = image;

Determine whether a particular image can be used as a destination:

XilImage image, dst;
Xil_boolean iswritable;
iswritable = xil_get_writable(dst);
if(iswritable)
   dst = image;

SEE ALSO

xil_create_from_device(3), xil_create_from_window(3). 

SunOS 5.6  —  Last change: 17 August 1993

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026