Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #98911

scanf design

From "Bill Cuningham" <nospam@nspam.invalid>
Newsgroups comp.lang.c
Subject scanf design
Date 2016-12-11 16:42 -0500
Organization A noiseless patient Spider
Message-ID <o2kh5p$e5q$1@dont-email.me> (permalink)

Show all headers | View raw


    I have notice over time, and the last few days I have been thinking 
about this in particular. scanf's design. It wants the value of the address 
a pointer points to. Hum now I notice many functions want a pointer's 
address. But not so many an address pointed at.

    What exactly do the designer's have in mind here when it comes to scanf 
and dealing with pointers. Or am I just seeing something that's not there.

int a;
scant ("%x\n",&a);

Should want a hex value or convert to a hex value. I can't remember scanf 
I've never really looked into greatly.

Bill

Back to comp.lang.c | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

scanf design "Bill Cuningham" <nospam@nspam.invalid> - 2016-12-11 16:42 -0500
  Re: scanf design Noob <root@127.0.0.1> - 2016-12-11 22:55 +0100
    Re: scanf design "Bill Cuningham" <nospam@nspam.invalid> - 2016-12-11 17:03 -0500
  Re: scanf design Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-12-11 22:05 +0000
  Re: scanf design Malcolm McLean <malcolm.mclean5@btinternet.com> - 2016-12-11 14:43 -0800
    Re: scanf design "Bill Cunningham" <nospam@nspam.invalid> - 2016-12-12 12:25 -0500
      Re: scanf design Keith Thompson <kst-u@mib.org> - 2016-12-12 11:15 -0800
        Re: scanf design Malcolm McLean <malcolm.mclean5@btinternet.com> - 2016-12-12 13:17 -0800
          Re: scanf design Keith Thompson <kst-u@mib.org> - 2016-12-12 14:02 -0800
            Re: scanf design Malcolm McLean <malcolm.mclean5@btinternet.com> - 2016-12-12 15:06 -0800
              Re: scanf design fir <profesor.fir@gmail.com> - 2016-12-12 15:58 -0800
                Re: scanf design fir <profesor.fir@gmail.com> - 2016-12-12 16:10 -0800
                Re: scanf design fir <profesor.fir@gmail.com> - 2016-12-12 16:10 -0800
                Re: scanf design fir <profesor.fir@gmail.com> - 2016-12-12 16:22 -0800
                Re: scanf design fir <profesor.fir@gmail.com> - 2016-12-15 07:30 -0800
                Re: scanf design fir <profesor.fir@gmail.com> - 2016-12-15 07:56 -0800
                Re: scanf design fir <profesor.fir@gmail.com> - 2016-12-15 08:21 -0800
    Re: scanf design "Bill Cunningham" <nospam@nspam.invalid> - 2016-12-12 13:18 -0500
      Re: scanf design Keith Thompson <kst-u@mib.org> - 2016-12-12 11:37 -0800

csiph-web