StrDupA(3w)

StrDupA3w

Usage

LPSTR StrDupA
(
LPCSTR lpszStr
)

Overview

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".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.