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

# \_wtol(3w)

## NAME

**\_wtol** (NTDLL.@)

## SYNOPSIS

LONG \_wtol\
  (\
   LPCWSTR *str*\
  )

## DESCRIPTION

Converts a unicode string to a long integer.

## PARAMS

*str* **\[In\]**  Wstring to be converted.

## RETURNS

On success it returns the integer value otherwise it returns **0.**

## NOTES

**Accepts:** {whitespace} \[+\|-\] {digits} No check is made for value overflow, only the lower **32** bits are assigned. If *str* is **NULL** it crashes, as the native function does.

## IMPLEMENTATION

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

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