#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char *uppercase(char source[])
{
int i;
char *tmp;
for(i=0; i<len; ++i){
if (tmp[i]>= 'a' && tmp[i]<= 'z'){
tmp[i]= tmp[i]-'a' +'A';
}
}
return tmp;
}
int main(){
char *str = uppercase("cold");
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KI2luY2x1ZGUgPHN0cmluZy5oPgoKY2hhciAqdXBwZXJjYXNlKGNoYXIgc291cmNlW10pCnsKICAgICBpbnQgaTsKICAgICBzaXplX3QgbGVuID0gc3RybGVuKHNvdXJjZSk7CiAgICAgY2hhciAqdG1wOwogICAgIHRtcCA9IG1hbGxvYyhsZW4rMSk7CiAgICAgbWVtY3B5KHRtcCwgc291cmNlLCBsZW4rMSk7CgogICAgIGZvcihpPTA7IGk8bGVuOyArK2kpewogICAgICAgIGlmICh0bXBbaV0+PSAnYScgJiYgdG1wW2ldPD0gJ3onKXsKICAgICAgICAgICAgdG1wW2ldPSB0bXBbaV0tJ2EnICsnQSc7CiAgICAgICAgfQogICAgfQoKICAgIHJldHVybiB0bXA7Cn0KCmludCBtYWluKCl7CiAgICBjaGFyICpzdHIgPSB1cHBlcmNhc2UoImNvbGQiKTsKICAgIHByaW50ZigiJXMiLCBzdHIpOwogICAgZnJlZShzdHIpOwoKICAgIHJldHVybiAwOwp9