Avaya Logo

Previous Topic

Next Topic

Book Contents

Book Index

atoi

The atoi instruction converts an ASCII string to an integer.

Synopsis

atoi(type.dst,ctype.src)

Description

The atoi instruction converts a null-terminated character string at the ctype.src to an integer value and stores that value at the type.dst. If an error occurs, the atoi instruction returns a 0 in type.dst.

Example

The following example converts a null-terminated character string found at the address labeled ISIZE to a numeric value and puts it in r.1.

atoi(r.1,ch.ISIZE)

© 2006 Avaya Inc. All Rights Reserved.