SW500011 Microchip Technology, SW500011 Datasheet - Page 270

HI-TECH X PRO FOR PIC32

SW500011

Manufacturer Part Number
SW500011
Description
HI-TECH X PRO FOR PIC32
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC32r
Datasheet

Specifications of SW500011

No. Of User Licenses
1
Supported Families
PIC32
Core Architecture
PIC
Supported Hosts
Windows XP, Vista, Linux, Mac OS X
Software Edition
Professional
Kit Contents
Software And Docs
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC32 Series
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
032
778-1007
778-1007
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()
270
#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 SW500011