#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void) {
char* letra = "A";
char *buffer
= malloc(strlen(letra
) + 6); //6 é o tamanho de "echo ", incluindo o terminador, dá para optimizar else printf("algo deu errado"); }
//https://pt.stackoverflow.com/q/311764/101
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KI2luY2x1ZGUgPHN0cmluZy5oPgoKaW50IG1haW4odm9pZCkgewogICAgY2hhciogbGV0cmEgPSAiQSI7CiAgICBjaGFyICpidWZmZXIgPSBtYWxsb2Moc3RybGVuKGxldHJhKSArIDYpOyAvLzYgw6kgbyB0YW1hbmhvIGRlICJlY2hvICIsIGluY2x1aW5kbyBvIHRlcm1pbmFkb3IsIGTDoSBwYXJhIG9wdGltaXphcgogICAgaWYgKHNwcmludGYoYnVmZmVyLCAiZWNobyAlcyIsIGxldHJhKSA+IDApIHByaW50ZihidWZmZXIpOwogICAgZWxzZSBwcmludGYoImFsZ28gZGV1IGVycmFkbyIpOwp9CgovL2h0dHBzOi8vcHQuc3RhY2tvdmVyZmxvdy5jb20vcS8zMTE3NjQvMTAx