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

# Str\_SetPtrA(3w)

## NAME

**Str\_SetPtrA** (COMCTL32.234)

## SYNOPSIS

BOOL Str\_SetPtrA\
  (\
   LPSTR\* *lppDest*,\
   LPCSTR *lpSrc*\
  )

## DESCRIPTION

Makes a copy of a string, allocating memory if necessary.

## PARAMS

*lppDest* **\[Out\]**  Pointer to destination string.

*lpSrc* **\[In\]**  Source string.

## RETURNS

**Success:** **TRUE**

**Failure:** **FALSE**.

## NOTES

Set *lpSrc* to **NULL** to free the memory allocated by a previous call to this function.

## IMPLEMENTATION

Exported by ordinal only. Use **[GetProcAddress(3w)](/GetProcAddress/3w.md)** to obtain a pointer to the function.

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

Debug channel **"commctrl"**.
