#include <stdio.h>
#include <memory.h>

void squeeze(char s[], char c);
void str_cat(char s[], char t[]);

int main(void){
	char s[15] = "abcdef";
	char t[] = "ghi";
	
	squeeze(s, 'd');
	printf("%s\n", s);
	str_cat(s, t);
	printf("%s\n", s);
	
 	return 0;
}

void squeeze(char s[], char c){
	int i, j;
	
	for(i = j = 0; s[i] != '\0'; i++)
		if(s[i] != c)
			s[j++] = s[i];
	s[j] = '\0';
}

void str_cat(char s[], char t[]){
	int i, j;
	
	i = j = 0;
	/*Поиск конца строки ss*/
	while(s[i] != '\0') i++;
	/*Копирование строки t в конец строки s*/
	while((s[i++] = s[j++]) != '\0');
}