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


Groups > comp.lang.c > #78682

Re: Vertical histogram: new thread

Newsgroups comp.lang.c
Date 2015-12-14 12:52 -0800
References (7 earlier) <983d80d4-b256-418a-b7d3-bc7c2efd2ae1@googlegroups.com> <00fe3597-6ea3-4644-a5e2-d23f5a2547d4@googlegroups.com> <87egepyr6d.fsf@bsb.me.uk> <n4mung$3vi$1@dont-email.me> <87lh8wyhcg.fsf@bsb.me.uk>
Message-ID <7ff7e60b-94de-4797-8716-cb95b4ac7559@googlegroups.com> (permalink)
Subject Re: Vertical histogram: new thread
From Malcolm McLean <malcolm.mclean5@btinternet.com>

Show all headers | View raw


On Monday, December 14, 2015 at 7:12:58 PM UTC, Ben Bacarisse wrote:
> BartC <bc@freeuk.com> writes:
> 
> Probably not.  So what are the choices?  Don't test?  Don't write any
> code that reads from stdin?  Stop writing code?
> 
My method involves making a clear distinction between "functions" -
or "bit-shuffling functions", essentially mappings of bits on function
entry to bits on function exit, and "procedures", things which
manipulate or query an external device (other than memory) 
attached to the computer.
If you read from stdin, we can only test that code in the presence
of an stdin - and in many environments, that's not an easy thing
to provide. if you pass in input as a string, the code can be tested
everywhere there is a C compiler that supports pointers and
enough memory to hold a line of text. Also, stdin is a physical
device. Keys can break, cables can be pulled out, monkeys
can get hold of the keyboard and start playing with it - anything
can happen, and robust code must act appropriately. However 
strings must be nul-terminated sequences of bytes. The problem
inputs are handled at a different level.

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


Thread

Vertical histogram: new thread Alla _ <modelling.data@gmail.com> - 2015-12-12 11:29 -0800
  Re: Vertical histogram: new thread James Kuyper <jameskuyper@verizon.net> - 2015-12-12 14:58 -0500
    Re: Vertical histogram: new thread Alla _ <modelling.data@gmail.com> - 2015-12-13 05:11 -0800
    Re: Vertical histogram: new thread Alla _ <modelling.data@gmail.com> - 2015-12-13 05:11 -0800
      Re: Vertical histogram: new thread Barry Schwarz <schwarzb@dqel.com> - 2015-12-13 05:51 -0800
        Re: Vertical histogram: new thread Alla _ <modelling.data@gmail.com> - 2015-12-13 06:15 -0800
        Re: Vertical histogram: new thread Alla _ <modelling.data@gmail.com> - 2015-12-13 08:34 -0800
          Re: Vertical histogram: new thread James Kuyper <jameskuyper@verizon.net> - 2015-12-13 12:15 -0500
            Re: Vertical histogram: new thread Alla _ <modelling.data@gmail.com> - 2015-12-13 09:56 -0800
              Re: Vertical histogram: new thread James Kuyper <jameskuyper@verizon.net> - 2015-12-13 13:14 -0500
                Re: Vertical histogram: new thread Alla _ <modelling.data@gmail.com> - 2015-12-13 10:24 -0800
        Re: Vertical histogram: new thread Alla _ <modelling.data@gmail.com> - 2015-12-13 09:55 -0800
      Re: Vertical histogram: new thread James Kuyper <jameskuyper@verizon.net> - 2015-12-13 10:22 -0500
  Re: Vertical histogram: new thread Alla _ <modelling.data@gmail.com> - 2015-12-13 05:03 -0800
    Re: Vertical histogram: new thread Barry Schwarz <schwarzb@dqel.com> - 2015-12-13 06:25 -0800
      Re: Vertical histogram: new thread Alla _ <modelling.data@gmail.com> - 2015-12-13 09:31 -0800
      Re: Vertical histogram: new thread Alla _ <modelling.data@gmail.com> - 2015-12-13 09:37 -0800
        Re: Vertical histogram: new thread BartC <bc@freeuk.com> - 2015-12-13 18:03 +0000
        Re: Vertical histogram: new thread Barry Schwarz <schwarzb@dqel.com> - 2015-12-13 13:01 -0800
          Re: Vertical histogram: new thread Alla _ <modelling.data@gmail.com> - 2015-12-14 01:35 -0800
            Re: Vertical histogram: new thread Richard Heathfield <rjh@cpax.org.uk> - 2015-12-14 09:40 +0000
              Re: Vertical histogram: new thread Alla _ <modelling.data@gmail.com> - 2015-12-14 01:50 -0800
        Re: Vertical histogram: new thread Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-12-13 21:11 +0000
          Re: Vertical histogram: new thread Alla _ <modelling.data@gmail.com> - 2015-12-14 01:08 -0800
            Re: Vertical histogram: new thread Richard Heathfield <rjh@cpax.org.uk> - 2015-12-14 09:35 +0000
              Re: Vertical histogram: new thread Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-12-14 10:19 +0000
                Re: Vertical histogram: new thread Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-12-14 03:39 -0800
                Re: Vertical histogram: new thread Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-12-14 12:17 +0000
                Re: Vertical histogram: new thread Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-12-14 05:44 -0800
                Re: Vertical histogram: new thread Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-12-14 14:58 +0000
                Re: Vertical histogram: new thread Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-12-14 07:45 -0800
                Re: Vertical histogram: new thread Keith Thompson <kst-u@mib.org> - 2015-12-14 08:53 -0800
                Re: Vertical histogram: new thread Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-12-14 17:34 +0000
                Re: Vertical histogram: new thread raltbos@xs4all.nl (Richard Bos) - 2015-12-15 01:26 +0000
                Re: Vertical histogram: new thread Richard Heathfield <rjh@cpax.org.uk> - 2015-12-15 08:14 +0000
                Re: Vertical histogram: new thread Richard Heathfield <rjh@cpax.org.uk> - 2015-12-14 13:12 +0000
                Re: Vertical histogram: new thread BartC <bc@freeuk.com> - 2015-12-14 13:37 +0000
                Re: Vertical histogram: new thread Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-12-14 15:01 +0000
                Re: Vertical histogram: new thread Richard Heathfield <rjh@cpax.org.uk> - 2015-12-14 15:13 +0000
                Re: Vertical histogram: new thread Alla _ <modelling.data@gmail.com> - 2015-12-14 07:18 -0800
                Re: Vertical histogram: new thread Jerry Stuckle <jstucklex@attglobal.net> - 2015-12-14 10:17 -0500
                Re: Vertical histogram: new thread Alla _ <modelling.data@gmail.com> - 2015-12-14 07:22 -0800
                Re: Vertical histogram: new thread Richard Heathfield <rjh@cpax.org.uk> - 2015-12-14 15:46 +0000
                Re: Vertical histogram: new thread Alla _ <modelling.data@gmail.com> - 2015-12-14 07:56 -0800
                Re: Vertical histogram: new thread Jerry Stuckle <jstucklex@attglobal.net> - 2015-12-14 12:08 -0500
                Re: Vertical histogram: new thread Jerry Stuckle <jstucklex@attglobal.net> - 2015-12-14 12:09 -0500
              Re: Vertical histogram: new thread Alla _ <modelling.data@gmail.com> - 2015-12-14 02:26 -0800
              Re: Vertical histogram: new thread Alla _ <modelling.data@gmail.com> - 2015-12-14 06:06 -0800
                Re: Vertical histogram: new thread Richard Heathfield <rjh@cpax.org.uk> - 2015-12-14 14:15 +0000
                Re: Vertical histogram: new thread Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-12-14 07:00 -0800
                Re: Vertical histogram: new thread Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-12-14 15:40 +0000
                Re: Vertical histogram: new thread BartC <bc@freeuk.com> - 2015-12-14 17:38 +0000
                Re: Vertical histogram: new thread Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-12-14 19:12 +0000
                Re: Vertical histogram: new thread BartC <bc@freeuk.com> - 2015-12-14 19:59 +0000
                Re: Vertical histogram: new thread Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-12-14 20:46 +0000
                Re: Vertical histogram: new thread BartC <bc@freeuk.com> - 2015-12-14 21:23 +0000
                Re: Vertical histogram: new thread Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-12-14 21:40 +0000
                Re: Vertical histogram: new thread Ian Collins <ian-news@hotmail.com> - 2015-12-15 10:43 +1300
                Re: Vertical histogram: new thread BartC <bc@freeuk.com> - 2015-12-14 22:03 +0000
                Re: Vertical histogram: new thread Ian Collins <ian-news@hotmail.com> - 2015-12-15 11:27 +1300
                Re: Vertical histogram: new thread Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-12-14 23:38 +0000
                Re: Vertical histogram: new thread BartC <bc@freeuk.com> - 2015-12-15 01:02 +0000
                Re: Vertical histogram: new thread Ian Collins <ian-news@hotmail.com> - 2015-12-15 14:09 +1300
                Re: Vertical histogram: new thread BartC <bc@freeuk.com> - 2015-12-15 01:29 +0000
                Re: Vertical histogram: new thread Ian Collins <ian-news@hotmail.com> - 2015-12-15 14:36 +1300
                Re: Vertical histogram: new thread Richard Heathfield <rjh@cpax.org.uk> - 2015-12-15 08:20 +0000
                Re: Vertical histogram: new thread Jerry Stuckle <jstucklex@attglobal.net> - 2015-12-14 20:32 -0500
                Re: Vertical histogram: new thread Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-12-15 01:38 +0000
                Re: Vertical histogram: new thread Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-12-15 03:07 -0800
                Re: Vertical histogram: new thread Richard Heathfield <rjh@cpax.org.uk> - 2015-12-15 11:53 +0000
                Re: Vertical histogram: new thread Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-12-15 04:29 -0800
                Re: Vertical histogram: new thread Richard Heathfield <rjh@cpax.org.uk> - 2015-12-15 12:51 +0000
                Re: Vertical histogram: new thread Keith Thompson <kst-u@mib.org> - 2015-12-15 08:18 -0800
                Re: Vertical histogram: new thread Richard Heathfield <rjh@cpax.org.uk> - 2015-12-15 16:28 +0000
                Re: Vertical histogram: new thread Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-12-15 11:44 -0800
                Re: Vertical histogram: new thread Jerry Stuckle <jstucklex@attglobal.net> - 2015-12-14 20:30 -0500
                Re: Vertical histogram: new thread Ian Collins <ian-news@hotmail.com> - 2015-12-15 14:39 +1300
                Re: Vertical histogram: new thread Jerry Stuckle <jstucklex@attglobal.net> - 2015-12-14 20:44 -0500
                Re: Vertical histogram: new thread Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-12-14 12:52 -0800
                Re: Vertical histogram: new thread Richard Heathfield <rjh@cpax.org.uk> - 2015-12-14 21:04 +0000
                Re: Vertical histogram: new thread Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-12-14 13:13 -0800
                Re: Vertical histogram: new thread Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-12-14 21:43 +0000
                Re: Vertical histogram: new thread Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-12-14 14:30 -0800
                Re: Vertical histogram: new thread Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-12-14 23:22 +0000
                Re: Vertical histogram: new thread Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-12-14 15:42 -0800
                Re: Vertical histogram: new thread Richard Heathfield <rjh@cpax.org.uk> - 2015-12-14 23:52 +0000
                Re: Vertical histogram: new thread Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-12-14 16:16 -0800
                Re: Vertical histogram: new thread Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-12-15 00:32 +0000
                Re: Vertical histogram: new thread Keith Thompson <kst-u@mib.org> - 2015-12-14 14:19 -0800
          Re: Vertical histogram: new thread Alla _ <modelling.data@gmail.com> - 2015-12-14 01:42 -0800
            Re: Vertical histogram: new thread Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-12-14 02:05 -0800
              Re: Vertical histogram: new thread Alla _ <modelling.data@gmail.com> - 2015-12-14 02:11 -0800
            Re: Vertical histogram: new thread Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-12-14 10:45 +0000
              Re: Vertical histogram: new thread Alla _ <modelling.data@gmail.com> - 2015-12-14 07:16 -0800
                Re: Vertical histogram: new thread Richard Heathfield <rjh@cpax.org.uk> - 2015-12-14 15:37 +0000
                Re: Vertical histogram: new thread Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-12-14 07:49 -0800
                Re: Vertical histogram: new thread Richard Heathfield <rjh@cpax.org.uk> - 2015-12-14 16:05 +0000
                Re: Vertical histogram: new thread Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-12-14 15:59 +0000
                Re: Vertical histogram: new thread Alla _ <modelling.data@gmail.com> - 2015-12-14 08:29 -0800
                Re: Vertical histogram: new thread Barry Schwarz <schwarzb@dqel.com> - 2015-12-14 10:25 -0800
                Re: Vertical histogram: new thread Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-12-14 18:42 +0000
            Re: Vertical histogram: new thread Richard Heathfield <rjh@cpax.org.uk> - 2015-12-14 12:28 +0000
            Re: Vertical histogram: new thread Keith Thompson <kst-u@mib.org> - 2015-12-14 09:06 -0800
  Re: Vertical histogram: new thread Alla _ <modelling.data@gmail.com> - 2015-12-14 02:15 -0800
    Re: Vertical histogram: new thread Udyant Wig <udyantw@gmail.com> - 2015-12-14 16:58 +0530
      Re: Vertical histogram: new thread Richard Heathfield <rjh@cpax.org.uk> - 2015-12-14 12:36 +0000
    Re: Vertical histogram: new thread Barry Schwarz <schwarzb@dqel.com> - 2015-12-14 03:58 -0800
    Re: Vertical histogram: new thread Richard Heathfield <rjh@cpax.org.uk> - 2015-12-14 12:34 +0000
    Re: Vertical histogram: new thread Anonymous Shadow <rocketpenguin@dont-email.me> - 2015-12-14 15:32 +0000

csiph-web