I have the code:

if (!(strncmp("grog://", param, 7) || strncmp("grogs://", param, 8))) {

}

I run this code with param = "grog://grag/301.png". I expect the conditional to trigger because I expect the first prefix check to pass. The conditional does NOT trigger, the else runs. What is my rotting meat brain missing?

EDIT: GOT MY ANSWER I DE MORGAN'NED WRONG

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/mcc/statuses/114745676994001128 on your instance and quote it. (Note that quoting is not supported in Mastodon.)