cfunc.si

C Function/C Functions, Releases: AP 6.1

converts a CPSTR into an integer.

Syntax

int _CP_si_(CPSTR * string)

Description

converts a CPSTR into an integer.

Example

CPSTR * s = _CP_mkstr('3.12345');
int i;

i = _CP_si_(s);
_CP_unix_env();
printf('%d\n', i);
_CP_str_free(s);

This example displays '3'.

See Also

Command Name Type Description
cfunc.introduction Introductory Overview

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.