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

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
strtol( )
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
Examples:
Example Files:
Also See:
296
result=strtol(nptr,& endptr, base)
nptr and endptr are strings and base is an integer
result is a signed long int.
returns the converted value in result , if any. If no conversion could be performed,
zero is returned.
The strtol function converts the initial portion of the string pointed to by nptr to a
signed long int representation in some radix determined by the value of base.
The part of the string after conversion is stored in the object pointed to endptr,
provided that endptr is not a null pointer. If nptr is empty or does not have the
expected form, no conversion is performed and the value of nptr is stored in the
object pointed to by endptr, provided endptr is not a null pointer.
All devices.
#INCLUDE <stdlib.h>
signed long result;
char str[9]="123hello";
char *ptr;
result=strtol(str,&ptr,10);
//result is 123 and ptr is "hello"
None
strtod(),
strtoul()

Related parts for PCD COMMAND LINE COMPILER