/* ColAdvPt.c */
/* Recyclable Object - this is Dr. Aota's 'firstwd()'.        */
/* Revision trial to be a fixed output */

#include <ctype.h>
/* Magic No is  = ADV_NO1 = 28 */
/* I am trying *adv_no as local here, hopefully it works */
/* At first let me go for Fixed number in codes, then try Global integer */

extern char *ColAdvPt (char *to, char *from, int *adv_no)
{
   int i;
   i=0;
   while ( *from!='\0' ){
	  *to++ = *from++ ;
	  i++;
	  if(i==adv_no){break;}
   }
   return (from);
}