What is Hackers' Pub?

Hackers' Pub is a place for software engineers to share their knowledge and experience with each other. It's also an ActivityPub-enabled social network, so you can follow your favorite hackers in the fediverse and get their latest posts in your feed.

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1

On my first attempt, which I didn't save, I asked a bit tersely. My tone may have looked like a pragmatic C programmer wanting to get their homework or dayjob done, so I got a reply that was the one a fellow student or coworker would give, which was “oh, you're right, but the list of functions that you can call with NULL and a size of 0 as an exception is: memcpy, memset, …”

But when I tried to reproduce in order to make this thread, I phrased the question more precisely, so I got this instead.

This is, of course, even worse.

It rephrases the question, like a human would do to eliminate ambiguity and show they understand the question. And it provides some bits of truth, namely that memcpy, memmove and memcmp shouldn't be called with a NULL pointer even with a size of 0. Another truth is that memccpy and memset_explicit were added in C23 (if it seems to you it was older than that, you're thinking of memset_s, but that story is for a different thread). And then, when your guard is down, it tells you about the part it made up entirely, which is that there are guarantees that apply to these functions. Absolutely not, there are none, check for yourself:

cigix.me/c23#7.26.2.2
cigix.me/c23#7.26.6.2

All the hints of a thoughtful answer written by a knowledgeable human. And then made-up bullshit. And then some classic truths again to complete the bullshit sandwich.

0
1

☠️원피스가 벌써 연재 28주년😭😭😭

소년기와 청년기, 그리고 중년기까지…
인생 절반 넘게 함께 해온 만화-

크로코다일편 이후 중도하차한 사람이 많지만
갠적으론 아직까지 열심히 보는중ㅋ

검은수염 아빠까지 등장했어 이사람들아🫵
지금 당장 정주행 추천!!

…현재 111권 이니 며칠 각오를🤣

Photo by Pavian on July 18, 2025. May be an image of text that says 'JUMP COMICS ワンピース ΝΕΡΦΕΟ ROMANCE DAWN一冒険の夜明けー ROMANCEDAWN一冒険の夜明けー DAWN- 巻一 ১ত 尾田栄一郎 ODA EIICHIRO'.
0
0
0
0
0
0
0
1
0
0
0
0
0

そんなわけなのでねちゃおうね〜
さようなら またいつか
1
1
0
0
1
0
0
0
0
0