API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

FUNCTION: WSTRNCOPYN()

Brew Release
Brew MP 1.0.2
See Also
WSTRCPY() Helper Functions
Description
This function copies the specified length of the source string into the destination string, which is guaranteed to be NULL-terminated. Both src and dest are wide strings (i.e., strings comprised of AECHAR characters).
Params
pDest
[out]:
Pointer to the destination buffer.
cbDest
[in]:
Size of pDest in AECHARs.
pSrc
[in]:
Pointer to a NULL-terminated string that must be copied into pDest.
lenSource
[in]:
The maximum string length to copy into pDest. It does not need to include NULL character. If it is set to -1, then the entire pSrc is copied to pDest.
Prototype
  •    int WSTRNCOPYN(AECHAR *pDest, int cbDest, AECHAR *pSrc, int lenSource);
    
Return

  • Returns the number of AECHARs copied.
Side Effect
  • None
Comments
None