lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Dealloc in fs_close_custom()?


From: Simon Goldschmidt
Subject: Re: [lwip-users] Dealloc in fs_close_custom()?
Date: Tue, 27 Feb 2018 06:36:03 +0100

Giuseppe Modugno wrote:
> And another thing I couldn't explain. The example uses pextension pointer for 
> malloc/free. However it sets file->data = file->pextension immediately.
>  
> So why don't use just file->data? It seems pextension is never used in lwip 
> code.

Exactly. This is an example that wants to show you can use pextension for 
anything you like
as it is not used by lwIP code internally.

Using ->data only works for files in one piece.

Simon



reply via email to

[Prev in Thread] Current Thread [Next in Thread]