Computational routine
eng

##
samphold4_m

### File content

    #include "scicos_block4.h"
    #include "memory.h"

    void samphold4_m(scicos_block *block,int flag)
    {
      /* c     Copyright INRIA

      Scicos block simulator
      returns sample and hold  of the input */

    if ((flag ==1)) {
      void *u,*y;
      int m,n,sz;
      m=GetInPortRows(block,1);
      n=GetInPortCols(block,1);
      u=GetInPortPtrs(block,1);
      y=GetOutPortPtrs(block,1);
      sz=GetSizeOfOut(block,1);
      memcpy(y,u,m*n*sz);
      }
    }