On Tue, 12 Aug 2008, Jordi Moles Blanco wrote:
>Hi,
>
>i'm running a FreeBSD 7.0 amd64 machine and struggling with some C code
>i'm writing.
In addition to the other comments already given, I think that it might
be useful for your learning experience to have some additional comments.
>I've had s
realloc(missatge, midataula * sizeof(char));
should be
missatge=realloc(missatge, midataula * sizeof(char));
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send
On Tue, 12 Aug 2008 18:22:21 +0200, Jordi Moles Blanco <[EMAIL PROTECTED]>
wrote:
> Hello,
> thank you very much for your time and help, i had completely
> misunderstood how realloc() works.
You are welcome, of course :-)
___
freebsd-questions@freebsd.
Hello,
thank you very much for your time and help, i had completely
misunderstood how realloc() works.
i though i was able to write some C code but now i feel a complete
newbie, hehehe.
anyway... that made everything clear to me and now my script is working
like a charm.
thanks for every
On Tue, 12 Aug 2008 17:02:43 +0200, Jordi Moles Blanco <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> i'm running a FreeBSD 7.0 amd64 machine and struggling with some C
> code i'm writing.
>
> I've had some trouble with this home-made script as it keeps crashing
> while launching a "realloc()" call.
>
> I n
Hi,
i'm running a FreeBSD 7.0 amd64 machine and struggling with some C code
i'm writing.
I've had some trouble with this home-made script as it keeps crashing
while launching a "realloc()" call.
I narrowed down the problem and here i'm sending you a short example of
code that crashes:
**