GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    Wolf480pl (wolf480pl@mstdn.io)'s status on Sunday, 16-Feb-2025 02:43:47 JSTWolf480plWolf480pl
    in reply to
    • Stephen Brooks 🦆
    • tedu

    @sjb @tedu

    so looks like `!p`
    is equivalent to `(0 == p)`
    and I'm guessing it casts the zero to the type of p?
    But zero cast to a pointer type is a null pointer, and all null pointers are equal, so this should be fine?

    But if you tried to cast a null pointer back to an integer, you might not get a zero (eg. on an arch that uses tagged pointers) ?

    At least that's my read on this, but I haven't read the whole standard...

    In conversationabout 3 months ago from mstdn.iopermalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.