SW500008 Microchip Technology, SW500008 Datasheet - Page 193

PICC-18 STD

SW500008

Manufacturer Part Number
SW500008
Description
PICC-18 STD
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC18r
Datasheets

Specifications of SW500008

Supported Families
PIC18
Core Architecture
PIC
Software Edition
Standard
Kit Contents
Software And Docs
Mcu Supported Families
PIC18
Tool Function
Compiler
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
PIC18 Series
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
015
778-1001
778-1001
Library Functions
See Also
qsort()
Return Value
A pointer to the matched array element (if there is more than one matching element, any of these
may be returned). If no match is found, a null pointer is returned.
Note
The comparison function must have the correct prototype.
}
i = 0;
while(gets(inbuf)) {
}
qsort(values, i, sizeof values[0], val_cmp);
vp = bsearch("fred", values, i, sizeof values[0], val_cmp);
if(!vp)
else
sscanf(inbuf,"%s %d", values[i].name, &values[i].value);
i++;
printf("Item ’fred’ was not found\n");
printf("Item ’fred’ has value %d\n", vp->value);
179

Related parts for SW500008