> ## Documentation Index
> Fetch the complete documentation index at: https://notevil.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CAPLfunctionCoTfsAtoxL

# coTfsatoxL

[Valid for](../../../../Shared/FeatureAvailability.md): CANoe DE • CANoe:lite DE • CANoe4SW DE

**Note**\
This function should not be used in user specific CAPL programs.

## Function Syntax

```
long coTfsatoxL( char inValueBuf[], dword valueBufSize );
```

## Description

The function converts a string into a long value. The string contains either a decimal value, e.g. "1234" or a hexadecimal value, e.g. "0x4321". The prefix 0x is automatically detected and the function converts the string.

## Parameters

* **inValueBuf\[]**: Buffer containing the string.
* **valueBufSize**: Buffer size in bytes of **inValueBuf**.

## Return Values

Converted string as long value.

## Example

—
