Post AVA68bdpv1DbDmk412 by phooky@octodon.social
(DIR) More posts by phooky@octodon.social
(DIR) Post #AV7eaARRSG3ZwDNWxU by foone@digipres.club
2023-04-28T20:49:58Z
0 likes, 0 repeats
int strspn(str1, str2)Returns the length of the initial portion of str1 which consists only of characters that are part of str2.why is this in the stdlib? this is... weird.
(DIR) Post #AV7eaBASks4MBqRU8G by piggo@piggo.space
2023-04-28T20:55:31.283826Z
0 likes, 0 repeats
@foone sounds like it could be useful for whitespace stripping?
(DIR) Post #AV7lKweH9bg2Ul4OfY by lanodan@queer.hacktivis.me
2023-04-28T22:07:16.206903Z
0 likes, 0 repeats
@piggo @foone Or stripping stuff like prefixes.
(DIR) Post #AV7lVhzxxmLaFBLda4 by piggo@piggo.space
2023-04-28T22:12:58.016014Z
0 likes, 0 repeats
@lanodan @foone it's not strstr, the second arg is a character list. not useful for prefixes
(DIR) Post #AV7lko89Rl37bcNOHw by lanodan@queer.hacktivis.me
2023-04-28T22:13:45.529934Z
0 likes, 0 repeats
@piggo @foone hmpf right, forgetting my C here a bit…
(DIR) Post #AV7touwYrCaxWmQSZc by phooky@octodon.social
2023-04-28T23:06:15Z
0 likes, 0 repeats
@suricrasia @foone the fact that this quarter-century old joke function is still in glibc is the strongest GNU smell possible
(DIR) Post #AV7tovlxm5iC6CTVh2 by niconiconi@mk.absturztau.be
2023-04-28T23:46:15.680Z
0 likes, 0 repeats
@phooky@octodon.social @suricrasia@lethargic.talkative.fish @foone@digipres.club I should try adding a SIMD optimized version and upstreaming that.
(DIR) Post #AVA68b7ZqxPjbjeIjY by theruran@hackers.town
2023-04-28T23:10:46Z
0 likes, 0 repeats
@phooky @suricrasia @foone checks out: https://www.gnu.org/software/libc/manual/2.37/html_node/Shuffling-Bytes.html#index-strfry :blobcatsipsweats:
(DIR) Post #AVA68bdpv1DbDmk412 by phooky@octodon.social
2023-04-29T00:01:59Z
0 likes, 0 repeats
@theruran @suricrasia @foone oh no, memfrob is even worse
(DIR) Post #AVA68cB9v7sCt8KfxI by theruran@hackers.town
2023-04-29T01:26:28Z
0 likes, 1 repeats
@phooky @suricrasia @foone @niconiconi Programs that need to destroy data should use explicit_bzero (see Erasing Sensitive Data), or possibly strfry (see Shuffling Bytes).https://www.gnu.org/software/libc/manual/2.37/html_node/Obfuscating-Data.html#index-memfrobI want to fuzz it. :raccoon_trash: