NWDSFreeBuf

Frees a buffer allocated by the NWDSAllocBuf function.

NetWare Server:4.x, 5.x, 6.x
Platform:NLM, Windows NT, Windows 95, Windows 98, Windows 2000, Windows XP
Library:Cross-Platform NDS (NET*.*)
Service:NDS

Syntax

C

  #include <nwnet.h> 
  or 
  #include <nwdsbuft.h> 
   
  N_EXTERN_LIBRARY (NWDSCCODE)  NWDSFreeBuf  ( 
     pBuf_T    buf);
  

Pascal

  uses netwin32 
   
  Function NWDSFreeBuf 
    (buf : pBuf_T 
  ) : NWDSCCODE;
  

Parameters

buf

(IN) Points to the buffer to be freed.

Return Values

These are common return values.

0x0000 0000

SUCCESSFUL

0xFFFF FEB5

ERR_NULL_POINTER

nonzero value

Nonzero values indicate errors. See NDS Return Values (–001 to –799).

Remarks

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.

NCP Calls

See Also

NWDSAllocBuf, NWDSInitBuf