memcpy(&cmd,&index,sizeof(int)); memcpy((cmd+4),&cc,index); [download]
In reply to Re: C to Perl by dmitri in thread C to Perl by vivapl