IPv6 prefix representation by pooh

s[];char*p=s+17,*r;f(c){*p++-58?f(*p),*r=c,r+=2:0;}main(i){for(gets(p),wmemset(s,774909488,16);*p;f(*p))r=s+16-i++*2;printf("%sip6.arpa.",s);}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page