#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", 5);
printf("%s\n", str);
return 0;
}
ICAgICNpbmNsdWRlIDxzdHJpbmcuaD4KICAgICNpbmNsdWRlIDxzdGRpby5oPgogICAgIAogICAgaW50IG1haW4oaW50IGFyZ2MsIGNoYXIgKmFyZ3ZbXSkKICAgIHsKICAgICAgY2hhciBzdHJbMjBdPXsxLDEsMSwxLDEsJ3onLCd6JywneicsJ3onLCd6J307CiAgICAgCiAgICAgIHN0cm5jcHkoc3RyLCAiYWJjZGVmZyIsIDUpOwogICAgIAogICAgICBwcmludGYoIiVzXG4iLCBzdHIpOwogICAgIAogICAgICByZXR1cm4gMDsKICAgIH0=