text: #include <stdio.h>
  
  int src[8], dst[8];
  
  /* $begin ncopy */
  /*
   * ncopy - copy src to dst, returning number of positive ints
   * contained in src array.
   */
  int ncopy(int *src, int *dst, int len)
  {
      int count = 0;
      int val;
  
      while (len > 0) {
  	val = *src++;
  	*dst++ = val;
  	if (val > 0)
  	    count++;
  	len--;
      }
      return count;
  }
  /* $end ncopy */
  
  int main()
  {
      int i, count;
  
      for (i=0; i<8; i++)
  	src[i]= i+1;
      count = ncopy(src, dst, 8);
      printf ("count=%d\n", count);
      exit(0);
  }
  
  
  