Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Copies string character values from one string memory buffer to another memory buffer.

Files

lib_str.h/lib_str.c

Prototype

Arguments

pstr_dest

Pointer to the string memory buffer to copy string characters into.

pstr_src

Pointer to the string memory buffer to copy string characters from.

Returned Value

Pointer to copied destination string, if no errors;

Pointer to NULL, otherwise.

Required Configuration

None.

Notes / Warnings

Destination buffer size (pstr_dest) is not validated; buffer overruns must be prevented by caller. Destination buffer size must be large enough to accomodate the entire source string size including its terminating NULL character.

String copy terminates if either string pointer points to or overlaps the NULL address.

Example Usage

  • No labels