https://www.cnblogs.com/cthon/p/8901084.html
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
void fun(char c[])
{
char *s = (char*)malloc(strlen(c));
strcpy(s,c);
int i = 0;
while (*s != '\0')
{
if(*s != 'a')
{
c[i++] = *s;
}
s++;
}
c[i] = '\0';
printf("%s",c);
}
int main()
{
char c[] = "aasdas";
fun(c);
return 0;
}