[Bug 268310] add sizeof(7) man page

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 11 Dec 2022 02:52:03 UTC

            Bug ID: 268310
           Summary: add sizeof(7) man page
           Product: Documentation
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Manual Pages
          Assignee: bugs@FreeBSD.org
          Reporter: jschauma@netmeister.org
                CC: doc@FreeBSD.org
 Attachment #238705 text/plain
         mime type:

Created attachment 238705
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=238705&action=edit
sizeof manual page

As an operator rather than a library function or syscall, 'sizeof' does not
have a manual page.  Its use is however not always completely obvious and
especially novice programmers misunderstand its function.  Being able to type
'man sizeof' to get an explanation is a lot more convenient than having to rely
on Google->StackOverflow and hoping whatever answers one finds there is

I wrote a manual page for the 'sizeof' operator:

(I've attached a copy of the manual page here to the bug as well.)

If the FreeBSD Project sees value in this and would like to add this manual
page to the base system, I'd be happy to sign over the copyright.

Note: my mandoc-fu is weak, and fixes and improvements may well be necessary.

You are receiving this mail because:
You are on the CC list for the bug.