AddressLib/vopio.c
void iref(MomImageType type,TChan(**readfunc)(MomImageData))

{
  switch (type) {
  case UCHAR_TYPE:
    if (readfunc) *readfunc=&getuchardata;
    return;
  case SHORT_TYPE:
    if (readfunc) *readfunc=&getshortdata;
    return;
  case FLOAT_TYPE:
    if (readfunc) *readfunc=&getfloatdata;
    return;
  case NONE_TYPE:
    return;
  }
  return;
}
/**********************************************************************/
/*  irefs   returns read function for selected buffer                 */
/**********************************************************************/
irefs   returns read function for selected buffer
irefs returns read function for selected buffer
void iref(MomImageType type,TChan(**readfunc)(MomImageData))
{
  switch (type) {
  case UCHAR_TYPE:
    if (readfunc) *readfunc=&getuchardata;
    return;
  case SHORT_TYPE:
    if (readfunc) *readfunc=&getshortdata;
    return;
  case FLOAT_TYPE:
    if (readfunc) *readfunc=&getfloatdata;
    return;
  case NONE_TYPE:
    return;
  }
  return;
}
void iref ( MomImageType type , TChan ( * * readfunc ) ( MomImageData ) ) { switch ( type ) { case UCHAR_TYPE : if ( readfunc ) * readfunc = & getuchardata ; return ; case SHORT_TYPE : if ( readfunc ) * readfunc = & getshortdata ; return ; case FLOAT_TYPE : if ( readfunc ) * readfunc = & getfloatdata ; return ; case NONE_TYPE : return ; } return ; }
irefs   returns read function for selected buffer
irefs returns read function for selected buffer