Thanks for the corrections. --My C code is pretty ugly. Especially the \r\n vs \n\r thing .
For what it is worth I **do** need to allocate another byte for the terminating \0
strlen does **not** include the terminating null see man strlen
In reply to Re: Re: C vs perl
by mandog
in thread C vs perl
by mandog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |