---
name: "StrDupA"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/StrDupA"
---

# 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)](/LocalAlloc/3w.md)**, and so should be released by calling **[LocalFree(3w)](/LocalFree/3w.md)**.

## IMPLEMENTATION

Declared in **"shlwapi.h"**.

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

Debug channel **"shell"**.
