SW006014 Microchip Technology, SW006014 Datasheet - Page 101
SW006014
Manufacturer Part Number
SW006014
Description
C COMPILER MPLAB FOR PIC24 MCU
Manufacturer
Microchip Technology
Type
MPLAB® C Compilerr
Series
PIC24r
Datasheet
1.SW006014.pdf
(246 pages)
Specifications of SW006014
Supported Families
PIC24
Core Architecture
PIC
Kit Contents
Software And Docs
Mcu Supported Families
PIC24
Tool Function
Compiler
Tool Type
Compiler
Processor Series
PIC24
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC24
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
- Current page: 101 of 246
- Download datasheet (3Mb)
© 2008 Microchip Technology Inc.
bsearch (Continued)
Example:
#include <stdlib.h> /* for bsearch, qsort */
#include <stdio.h>
#define NUM 7
int comp(const void *e1, const void *e2);
int main(void)
{
}
int comp(const void *e1, const void *e2)
{
}
Output:
Sorted List:
The value 25 was found
The value 75 was not found
else
return 1;
int list[NUM] = {35, 47, 63, 25, 93, 16, 52};
int x, y;
int *r;
qsort(list, NUM, sizeof(int), comp);
printf("Sorted List:
for (x = 0; x < NUM; x++)
y = 25;
r = bsearch(&y, list, NUM, sizeof(int), comp);
if (r)
else
y = 75;
r = bsearch(&y, list, NUM, sizeof(int), comp);
if (r)
else
const int * a1 = e1;
const int * a2 = e2;
if (*a1 < *a2)
else if (*a1 == *a2)
printf("%d
printf("\nThe value %d was found\n", y);
printf("\nThe value %d was not found\n", y);
printf("\nThe value %d was found\n", y);
printf("\nThe value %d was not found\n", y);
return -1;
return 0;
16
", list[x]);
25
/* for printf, sizeof */
35
");
47
52
63
93
DS51456E-page 97
Related parts for SW006014
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet: