AddressLib/vopio.c
void oref(MomImageType type,void (**writefunc)(MomImageData,TChan))

{
  switch (type) {
  case UCHAR_TYPE:
    if (writefunc) *writefunc=&setuchardata;
    return;
  case SHORT_TYPE:
    if (writefunc) *writefunc=&setshortdata;
    return;
  case FLOAT_TYPE:
    if (writefunc) *writefunc=&setfloatdata;
    return;
  case NONE_TYPE:
    return;
  }
  return;
}
/**********************************************************************/
/*  orefs   returns write function for selected buffer                */
/**********************************************************************/
orefs   returns write function for selected buffer
orefs returns write function for selected buffer
void oref(MomImageType type,void (**writefunc)(MomImageData,TChan))
{
  switch (type) {
  case UCHAR_TYPE:
    if (writefunc) *writefunc=&setuchardata;
    return;
  case SHORT_TYPE:
    if (writefunc) *writefunc=&setshortdata;
    return;
  case FLOAT_TYPE:
    if (writefunc) *writefunc=&setfloatdata;
    return;
  case NONE_TYPE:
    return;
  }
  return;
}
void oref ( MomImageType type , void ( * * writefunc ) ( MomImageData , TChan ) ) { switch ( type ) { case UCHAR_TYPE : if ( writefunc ) * writefunc = & setuchardata ; return ; case SHORT_TYPE : if ( writefunc ) * writefunc = & setshortdata ; return ; case FLOAT_TYPE : if ( writefunc ) * writefunc = & setfloatdata ; return ; case NONE_TYPE : return ; } return ; }
orefs   returns write function for selected buffer
orefs returns write function for selected buffer