Elektrine lite

← Feed

@novalis@honk.novalis.org

Post #2806643

2026-05-03 17:13 UTC

@bkuhn@fedi.copyleft.org @wouter@pleroma.debian.social @mjw@mastodon.nl @collinfunk@mastodon.social @pinche_compinche@tuiter.rocks This is why man strstr gives the arguments as haystack and needle instead of trying to use the word target.

Replies (1)

  • @bkuhn@fedi.copyleft.org 2026-05-03 22:13

    @novalis@honk.novalis.org Whether 'strstr' should exist at *all* is another matter entirely. 🤣 Although you may be too young to remember that there was a SYSV release in which its libc's strstr(3) had a huge buffer-overflow and no one in the SYSV userbase trusted it anymore (even after the bug was fixed). I remember distinctly trying to port glibc to SYSV just to get strtstr(3) back and my boss said it was a waste of time & just use another library. Cc: @wouter@pleroma.debian.social @mjw@mastodon.nl @collinfunk@mastodon.social @pinche_compinche@tuiter.rocks

    Open ##2806644