in reply to XS help needed

Have you tried to read the documentation in perlxstut?