NWAFPASCIIZToLenStr

Changes a NULL-terminated string to a length-preceded string

NetWare Server:
Platform:NLM, Windows NT, Windows 95, Windows 98
Library:Cross-Platform NetWare Calls (CAL*.*)
Service:AFP

Syntax

  #include <nwafp.h>
  or
  #include <nwcalls.h> 
   
  NWCCODE NWAPI NWAFPASCIIZToLenStr ( 
     pnstr8              pbstrDstStr,  
     const nstr8 N_FAR  *pbstrSrcStr);
  

Delphi Syntax

  uses calwin32 
   
  Function NWAFPASCIIZToLenStr 
    (pbstrDstStr : pnstr8; 
     const pbstrSrcStr : pnstr8 
  ) : NWCCODE;
  

Parameters

pbstrDstStr
(OUT) Points to a length-preceded string of Delphi type.
pbstrSrcStr
(IN) Points to a NULL-terminated string.

Return Values

These are common return values; see Return Values (Return Values for C) for more information.

0x0000

SUCCESSFUL

Remarks

NWAFPASCIIZToLenStr returns the length of the string if it is greater than the predetermined accepted size.