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

# \_itow(3w)

## NAME

**\_itow** (NTDLL.@)

## SYNOPSIS

LPWSTR \_itow\
  (\
   int    *value*,\
   LPWSTR *str*,\
   INT    *radix*\
  )

## PARAMS

*value* **\[In\]**  Value to be converted.

*str* **\[Out\]**  Destination for the converted *value*.

*radix* **\[In\]**  Number base for conversion.

## DESCRIPTION

Converts an integer to a unicode string.

## RETURNS

Always returns *str*.

## NOTES

Converts *value* to a **' '** terminated wstring which is copied to *str*. The maximum length of the copied *str* is **33** bytes. If *radix* is **10** and *value* is negative, the *value* is converted with sign. Does not check if *radix* is in the range of **2** to **36.** If *str* is **NULL** it just returns **NULL**.

## DIFFERENCES

**-** The native function crashes when the string is longer than **19** chars. This function does not have this bug.

## IMPLEMENTATION

Declared in **"tchar.h"**.

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