PCD COMMAND LINE COMPILER Custom Computer Services Inc (CCS), PCD COMMAND LINE COMPILER Datasheet - Page 176

PCD C-COMPILER PIC24, DSPIC

PCD COMMAND LINE COMPILER

Manufacturer Part Number
PCD COMMAND LINE COMPILER
Description
PCD C-COMPILER PIC24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCD COMMAND LINE COMPILER

For Use With/related Products
Microchip PIC24/dsPIC®
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1007
atoi( ) atol( ) atoi32( ) atoi48( ) atoi64( )
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
Examples:
Example Files:
Also See:
162
ivalue = atoi(string)
lvalue = atol(string)
i32value = atoi32(string)
or
i48value=atoi48(string)
or
i64value=atoi64(string)
string is a pointer to a null terminated string of characters.
ivalue is an 8 bit int.
lvalue is a 16 bit int.
i32value is a 32 bit int.
48value is a 48 bit int.
i64value is a 64 bit int.
Converts the string passed to the function into an int representation. Accepts both
decimal and hexadecimal argument. If the result cannot be represented, the
behavior is undefined.
All devices
#INCLUDE <stdlib.h>
char string[10];
int x;
strcpy(string,"123");
x = atoi(string);
// x is now 123
input.c
printf()
or
or

Related parts for PCD COMMAND LINE COMPILER