lkml.org 
[lkml]   [2020]   [Oct]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v4 1/2] system_data_types.7: Add 'void *'
From
Date
On 10/2/20 11:38 AM, Alejandro Colomar wrote:

> .I void *
>
> renders with a space in between.

That's odd, as "man(7)" says "All of the arguments will be printed next to each
other without intervening spaces". I'd play it safe and quote the arg anyway.

> > %p works with any object pointer type (or in POSIX, any pointer type),
> > not just  void *.
> In theory, no (if otherwise, I'd like to know why):

Oh, you're right. I had missed that. In GNU/Linux hosts, though, any pointer
(including function pointers) can be given to %p.

The only platforms where %p wouldn't work on all pointers would be platforms
like IBM i, which has both 64-bit (process local) pointers and 128-bit (tagged
space) pointers and where you can declare and use pointers of different widths
in the same program.

\
 
 \ /
  Last update: 2020-10-02 22:14    [W:0.046 / U:2.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site