Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

where is the problem?

fly_on_the_nose

Newbie level 2
Newbie level 2
Joined
Jun 13, 2012
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,290
Why don´t work right? Please help

T* getItem(List *list, int pos)
{
if(!list || pos < 0 || pos >= list->length)
return NULL;

int u;
ListItem *ha = list->first;
for(u = 0; u < pos; u++)
{
ha = ha->next;
if(!ha)
return NULL;
}
return (T*)ha;
}
 

LaTeX Commands Quick-Menu:

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top