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

Developer

API Reference

FUNCTION: STRNCPY()

Brew Release
Brew MP 1.0.2
See Also
Helper Functions
Description
function strncpy(). It copies specified number of characters from one string to another.
The strncpy() function copies the initial number of characters (specified by count) from strSource to strDest and returns strDest. If count is less than or equal to the length of strSource, a NULL character is not appended automatically to the copied string. If count is greater than the length of strSource, the destination string is padded with NULL characters up to length count. The behavior of strncpy() is undefined if the source and destination strings overlap.
Params
strDest
[]:
[in/out]: Destination string.
strSource
[]:
[in/out]: Source string.
count
[in]:
Number of characters to be copied.
Prototype
  •    char *STRNCPY( char *strDest, const char *strSource, size_t count );
    
    
Return

  • Returns strDest.
Side Effect
  • None
Comments
None