Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*----------------------------------------------------------------------------*/
- tList *
- tListAssign(tList * list, int position, void * value)
- {
- int cnt = 0;
- for(tList * iterator = list; iterator != NULL; iterator = iterator->next,
- ++cnt)
- {
- if(cnt == position)
- {
- iterator->data = value; // E agora?
- break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement