I disagree, because the original code fills cmd with null bytes first before filling in the size and the string. To get the same effect we need a null-padded string in the pack.
I imagine this code to be part of a symbol table with fixed-length cmd records, so the exact size could matter.
In reply to Re^3: C to Perl
by tall_man
in thread C to Perl
by vivapl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |