vivapl has asked for the wisdom of the Perl Monks concerning the following question:
Desperate of your wisdom:
I have en excerpt of C code:Could anyone help me with getting the equivalent in perl?strcat(cc,"\015"); index=strlen(cc); memset(&cmd,0,sizeof(cmd)); memcpy(&cmd,&index,sizeof(int)); memcpy((cmd+4),&cc,index);
Thanks in advance,
Peteedited: Wed Apr 16 17:05:30 2003 by jeffa - code tags, removed br tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: C to Perl
by tall_man (Parson) on Apr 04, 2003 at 22:31 UTC | |
by Thelonius (Priest) on Apr 05, 2003 at 01:53 UTC | |
by tall_man (Parson) on Apr 06, 2003 at 00:35 UTC | |
|
Re: C to Perl
by dmitri (Priest) on Apr 04, 2003 at 21:58 UTC | |
|
Re: C to Perl
by vivapl (Acolyte) on Apr 07, 2003 at 16:27 UTC | |
by tall_man (Parson) on Apr 07, 2003 at 17:58 UTC |