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

# RtlInitAnsiString(3w)

## NAME

**RtlInitAnsiString** (NTDLL.@)

## SYNOPSIS

void RtlInitAnsiString\
  (\
   PANSI\_STRING *target*,\
   PCSZ         *source*\
  )

## PARAMS

*target* **\[In/Out\]**  Buffered ansi string to be initialized.

*source* **\[In\]**  **' '** terminated string used to initialize *target*.

## DESCRIPTION

Initializes a buffered ansi string.

## RETURNS

Nothing.

## NOTES

Assigns *source* to *target-\>Buffer*. The length of *source* is assigned to *target-\>Length* and *target-\>MaximumLength*. If *source* is **NULL** the length of *source* is assumed to be **0.**

## IMPLEMENTATION

Declared in **"winternl.h"**.

Implemented in **"dlls/ntdll/rtlstr.c"**.

Debug channel **"ntdll"**.
