#include<stdio.h>

#include<conio.h>

void proc(char *str)

{

    while(*str !='\0')

    str++;  //将指针移到最后一位

    str--;

    while(*str =='*')

    str--;

    *(str+1) = '\0';  //添加结束符

}


void main()

{

    char s[17]={"****asd***fff***"};

    puts(s);

    printf("\n");

    proc(s);

    puts(s);

}