plz check following code pMe i an structure pointer,in which char *linewisechar
is made.
pMe->linewisechar=(pMe->newcchar+STRLEN(pMe->newcchar)-1);
here i am assigning adress of last character of string pMe->newcchar to
pMe->linewisechar.
now in else part i am assignig
linewisechar=pMe->linewisechar;
linewisechar is local char * variable.
problem lies in while loop wt should be the value of n there i cant give it ++ coz then its incrementing only one char to it,so tht it point to next value in (pMe->newcchar+i-1);
if(currentline !=form_cursor->lines)
{
pMe->linewisechar=(pMe->newcchar+i-1);
else
{
linewisechar=pMe->linewisechar;
while ((*linewisechar)!='\0')
{
pMe->arr[k]=*(linewisechar);
linewisechar+=(n);
k++;
}
}