Frees a buffer allocated by the NWDSAllocBuf function.
#include <nwnet.h> or #include <nwdsbuft.h> N_EXTERN_LIBRARY (NWDSCCODE) NWDSFreeBuf ( pBuf_T buf);
uses netwin32 Function NWDSFreeBuf (buf : pBuf_T ) : NWDSCCODE;
(IN) Points to the buffer to be freed.
These are common return values.
0x0000 0000 |
SUCCESSFUL |
0xFFFF FEB5 |
ERR_NULL_POINTER |
nonzero value |
Nonzero values indicate errors. See |
All buffers allocated by calling NWDSAllocBuf should be freed once they are no longer needed by the client. Doing so frees up memory for the client.
If the buf parameter is passed NULL, NWDSFreeBuf will return ERR_NULL_POINTER.