#include <stdlib.h>
#include <stdio.h>
#include <string.h>
void concatenar_letra(char texto[], char letra){
size_t tamanho
= strlen(texto
); texto[tamanho] = letra;
texto[tamanho + 1] = '\0';
}
int main() {
char texto[30] = "texto";
concatenar_letra(texto, '!');
return 0;
}
I2luY2x1ZGUgPHN0ZGxpYi5oPgojaW5jbHVkZSA8c3RkaW8uaD4KI2luY2x1ZGUgPHN0cmluZy5oPgoKdm9pZCBjb25jYXRlbmFyX2xldHJhKGNoYXIgdGV4dG9bXSwgY2hhciBsZXRyYSl7CiAgICBzaXplX3QgdGFtYW5obyA9IHN0cmxlbih0ZXh0byk7CiAgICB0ZXh0b1t0YW1hbmhvXSA9IGxldHJhOwogICAgdGV4dG9bdGFtYW5obyArIDFdID0gJ1wwJzsKfQoKaW50IG1haW4oKSB7CiAgICBjaGFyIHRleHRvWzMwXSA9ICJ0ZXh0byI7CiAgICBjb25jYXRlbmFyX2xldHJhKHRleHRvLCAnIScpOwoKICAgIHByaW50ZigiJXMiLCB0ZXh0byk7CgogICAgcmV0dXJuIDA7Cn0K