#include <string.h>
#include <stdio.h>
int main(int argc, char *argv[])
{
char str[20]={1,1,1,1,1,'z','z','z','z','z'};
strncpy(str, "abcdefg", 15);
printf("%s\n", str);
return 0;
}
ICAgICAgICAjaW5jbHVkZSA8c3RyaW5nLmg+CiAgICAgICAgI2luY2x1ZGUgPHN0ZGlvLmg+CiAgICAgCiAgICAgICAgaW50IG1haW4oaW50IGFyZ2MsIGNoYXIgKmFyZ3ZbXSkKICAgICAgICB7CiAgICAgICAgICBjaGFyIHN0clsyMF09ezEsMSwxLDEsMSwneicsJ3onLCd6JywneicsJ3onfTsKICAgICAKICAgICAgICAgIHN0cm5jcHkoc3RyLCAiYWJjZGVmZyIsIDE1KTsKICAgICAKICAgICAgICAgIHByaW50ZigiJXNcbiIsIHN0cik7CiAgICAgCiAgICAgICAgICByZXR1cm4gMDsKICAgICAgICB9