function::strtol.3stap

Langue: en

Version: September 2010 (ubuntu - 24/10/10)

Section: 3 (Bibliothèques de fonctions)

NAME

function::strtol - strtol - Convert a string to a long.

SYNOPSIS

     strtol:long(str:string,base:long)
 

ARGUMENTS

str

String to convert.

base

The base to use

GENERAL SYNTAX

strtol:long (str:string, base:long)

DESCRIPTION

This function converts the string representation of a number to an integer. The base parameter indicates the number base to assume for the string (eg. 16 for hex, 8 for octal, 2 for binary).