SW500010 Microchip Technology, SW500010 Datasheet - Page 320

HI-TECH C PRO FOR PIC10/12/16

SW500010

Manufacturer Part Number
SW500010
Description
HI-TECH C PRO FOR PIC10/12/16
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC10/12/16r
Datasheets

Specifications of SW500010

Supported Families
PIC10, PIC12, PIC16
Core Architecture
PIC
Software Edition
Professional
Kit Contents
Software And Docs
Mcu Supported Families
PIC10/12/16
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC10, PIC12, PIC14, PIC16, PIC16E
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
019P
778-1006
778-1006
STRTOL
Synopsis
Description
Parse the string s converting it to a long integer type. This function converts the first occurence of
a substring of the input that is made up of characters of the expected form after skipping leading
white-space characters. The radix of the input is determined from base. If this is zero, then the
radix defaults to base 10. If res is not NULL, it will be made to point to the first character after the
converted sub-string.
Example
See Also
strtod()
320
#include <stdlib.h>
double strtol (const char * s, const char ** res, int base)
#include <stdio.h>
#include <strlib.h>
void
main (void)
{
}
char buf[] = " 0X299 0x792 ";
char * end;
long in1, in2;
in1 = strtol(buf, &end, 16);
in2 = strtol(end, NULL, 16);
printf("in (decimal): %ld, %ld\n", in1, in2);
Library Functions

Related parts for SW500010