Reference

StrDupA(3w)

NAME

StrDupA (SHLWAPI.@)

SYNOPSIS

LPSTR StrDupA
(
LPCSTR lpszStr
)

DESCRIPTION

Duplicate a string.

PARAMS

lpszStr [In] String to duplicate.

RETURNS

Success: A pointer to a new string containing the contents of lpszStr

Failure: NULL, if memory cannot be allocated.

NOTES

The string memory is allocated with LocalAlloc(3w), and so should be released by calling LocalFree(3w).

IMPLEMENTATION

Declared in "shlwapi.h".

Implemented in "dlls/shlwapi/string.c".

Debug channel "shell".

History