DUMB SHIT MISCHIEF AND MALFEASANCE EDITION – Telegram
DUMB SHIT MISCHIEF AND MALFEASANCE EDITION
99 subscribers
2.53K photos
2.09K videos
15 files
137 links
Download Telegram
God I am so glad I can pay 800$ a month so my landlord can provide the shittiest WiFi possible
I really want to like bone marrow but dear god I can't get over it yet
Brewing something wicked
Forwarded from /g/‘s Tech Memes (damir)
what is bro talking about 😭
Good news: I figured out how to do this thing in C that had been fucking with me for a while
Bad news: I am a completely fucking retarded, -110 IQ specimen because this was easy as shit and shouldn't have taken me so long
int regexlist_remove(struct regexlist **rl, const char *pattern) {
// Search the list linearly for the desired node, reset if the node can't be found
struct regexlist * const start = *rl;
for(; *rl != NULL; *rl = (*rl)->next) {
if(strcmp((*rl)->pattern, pattern) == 0)
break;
}
if(*rl == NULL) {
*rl = start;
return -1;
}

...
}