You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closing as a duplicate of #197. I'm still amenable to such an addition; I just haven't had time or inclination to work on it specifically. Patches are still welcome.
Please Add some macros to support reverse the list.
`
struct item{
int id;
struct item*next;
};
struct itemhead = NULL;
void additem(int id)
{
struct itemi = malloc(sizeof(*i));
i->id = id;
LL_PREPEND(head, i);
}
void add()
{
for(int i=0; i<1000000; i++)
additem(i);
}
int main(){
add();
LL_REVERSE(head);
return 0;
}
`
The text was updated successfully, but these errors were encountered: