转自:http://www.cnblogs.com/tolimit/p/4202959.html
/************************************************************************* > File Name: test.c > Author: ToLiMit > Mail: 348958453@qq.com > Created Time: Sun 04 Jan 2015 06:20:05 PM PST ************************************************************************/ #include<stdio.h> void delete_str_char (char * main_str, char * sub_str) { if ((main_str == NULL) || (sub_str == NULL)) return; char * sub_index = sub_str; char * main_index = main_str; char bitmap[32] = {0}; char * str = (char *)malloc (strlen (str) + 1); char * index = str; memset (str, 0, strlen (str) + 1); while (*sub_index != '