RE: FAR for pointer to pointer

2020-05-27 Thread Xiang Xiao
Your interpretation is correct From my C knowledge.

> -Original Message-
> From: Takashi Yamamoto 
> Sent: Wednesday, May 27, 2020 1:22 PM
> To: dev@nuttx.apache.org
> Subject: Re: FAR for pointer to pointer
> 
> On Tue, May 26, 2020 at 8:05 PM Alan Carvalho de Assis  
> wrote:
> >
> > man strtoul
> 
> my question was about FAR.
> strtoul is just an example.
> 
> >
> > On 5/25/20, Takashi Yamamoto  wrote:
> > > hi,
> > >
> > > our strtoul prototype is:
> > >
> > > unsigned long strtoul(FAR const char *nptr, FAR char **endptr,
> > > int base);
> > >
> > > why shouldn't they be like, say, "FAR char * FAR * endptr"?
> > >



Re: FAR for pointer to pointer

2020-05-26 Thread Takashi Yamamoto
On Tue, May 26, 2020 at 8:05 PM Alan Carvalho de Assis
 wrote:
>
> man strtoul

my question was about FAR.
strtoul is just an example.

>
> On 5/25/20, Takashi Yamamoto  wrote:
> > hi,
> >
> > our strtoul prototype is:
> >
> > unsigned long strtoul(FAR const char *nptr, FAR char **endptr, int
> > base);
> >
> > why shouldn't they be like, say, "FAR char * FAR * endptr"?
> >


Re: FAR for pointer to pointer

2020-05-26 Thread Alan Carvalho de Assis
man strtoul

On 5/25/20, Takashi Yamamoto  wrote:
> hi,
>
> our strtoul prototype is:
>
> unsigned long strtoul(FAR const char *nptr, FAR char **endptr, int
> base);
>
> why shouldn't they be like, say, "FAR char * FAR * endptr"?
>


FAR for pointer to pointer

2020-05-25 Thread Takashi Yamamoto
hi,

our strtoul prototype is:

unsigned long strtoul(FAR const char *nptr, FAR char **endptr, int base);

why shouldn't they be like, say, "FAR char * FAR * endptr"?