#include <stdio.h>
#include <string.h>
char* ptr(char *string_a, char *string_b)
{
int i;
for(i=0; string_a[i]!='\0'; ++i);
for(int j=0; string_b[j]!='\0'; ++j, ++i)
{
string_a[i]=string_b[j];
}
string_a[i]='\0';
return string_a;
}
int main (void)
{
char string_a[250];
char string_b[250];
puts(" -- DIGITE UMA PALAVRA -- "); puts(" -- DIGITE UMA PALAVRA -- "); puts(ptr
(string_a
,string_b
)); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KCmNoYXIqIHB0cihjaGFyICpzdHJpbmdfYSwgY2hhciAqc3RyaW5nX2IpCnsKCWludCBpOwogICBmb3IoaT0wOyBzdHJpbmdfYVtpXSE9J1wwJzsgKytpKTsKICAgICAgIGZvcihpbnQgaj0wOyBzdHJpbmdfYltqXSE9J1wwJzsgKytqLCArK2kpCiAgICAgICB7CiAgICAgICAgICBzdHJpbmdfYVtpXT1zdHJpbmdfYltqXTsKICAgICAgIH0KICAgIHN0cmluZ19hW2ldPSdcMCc7CglyZXR1cm4gc3RyaW5nX2E7Cn0KaW50IG1haW4gKHZvaWQpCnsKICAgIGNoYXIgc3RyaW5nX2FbMjUwXTsKICAgIGNoYXIgc3RyaW5nX2JbMjUwXTsKICAgIHB1dHMoIiAtLSBESUdJVEUgVU1BIFBBTEFWUkEgLS0gIik7CiAgICBnZXRzKHN0cmluZ19hKTsKICAgIHB1dHMoIiAtLSBESUdJVEUgVU1BIFBBTEFWUkEgLS0gIik7CiAgICBnZXRzKHN0cmluZ19iKTsKICAgIHB1dHMocHRyKHN0cmluZ19hLHN0cmluZ19iKSk7CiAgICByZXR1cm4gMDsKfQ==