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


Groups > comp.lang.c > #100089

Re: Piece of code to read and process data from a file, separating chars and ints

From Ben Bacarisse <ben.usenet@bsb.me.uk>
Newsgroups comp.lang.c
Subject Re: Piece of code to read and process data from a file, separating chars and ints
Date 2016-12-23 20:31 +0000
Organization A noiseless patient Spider
Message-ID <87wpeq9yl8.fsf@bsb.me.uk> (permalink)
References <0fb61ff9-91e4-4001-b99d-6cc1ce28dc6f@googlegroups.com> <o3jc6p$cpr$1@dont-email.me> <2c4ff7ed-d261-4a24-a274-3f374abd7e84@googlegroups.com> <878tr6bodk.fsf@bsb.me.uk> <8872dbfd-6d67-4650-9141-0461359dc0eb@googlegroups.com>

Show all headers | View raw


Alla _ <modelling.data@gmail.com> writes:

> On Friday, December 23, 2016 at 7:29:20 PM UTC+3, Ben Bacarisse wrote:
>> Alla _ <modelling.data@gmail.com> writes:
>> <snip>
>> > ... The only 
>> > extra feature I use is dynamic memory allocation. But it is an important
>> > one for my program.
>> 
>> Why?
<snip>

> I am not planning to process hundreds of items; the program will have very 
> strict assumptions and limits. Still I truly want to use dynamic
> memory here.

I just wanted to know why!

> Actually I thought that I have done the basic part that uses fixed
> array bounds,

Ah, sorry.  My mistake.

That should make debugging simpler.  At every stage where you make a
change, run all your tests.  You will then have two very similar
programs and only a small code change that could be responsible for the
error.  Of course, not all bug show up in testing, but I presume you are
seeing a problem in testing or you would not be asking here.

If I get time I'll take a look but I don't have the advantage of being
able to look only at the changes!

<snip>
-- 
Ben.

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


Thread

Piece of code to read and process data from a file, separating chars and ints Alla _ <modelling.data@gmail.com> - 2016-12-23 05:02 -0800
  Re: Piece of code to read and process data from a file, separating chars and ints Richard Heathfield <rjh@cpax.org.uk> - 2016-12-23 14:28 +0000
    Re: Piece of code to read and process data from a file, separating chars and ints Alla _ <modelling.data@gmail.com> - 2016-12-23 06:39 -0800
      Re: Piece of code to read and process data from a file, separating chars and ints Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-12-23 16:29 +0000
        Re: Piece of code to read and process data from a file, separating chars and ints Alla _ <modelling.data@gmail.com> - 2016-12-23 08:44 -0800
          Re: Piece of code to read and process data from a file, separating chars and ints Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-12-23 20:31 +0000
            Re: Piece of code to read and process data from a file, separating chars and ints Alla _ <modelling.data@gmail.com> - 2016-12-23 20:52 -0800
      Re: Piece of code to read and process data from a file, separating chars and ints Richard Heathfield <rjh@cpax.org.uk> - 2016-12-23 19:34 +0000
        Re: Piece of code to read and process data from a file, separating chars and ints Alla _ <modelling.data@gmail.com> - 2016-12-23 21:31 -0800
  Re: Piece of code to read and process data from a file, separating chars and ints Keith Thompson <kst-u@mib.org> - 2016-12-23 14:10 -0800
    Re: Piece of code to read and process data from a file, separating chars and ints Alla _ <modelling.data@gmail.com> - 2016-12-23 21:09 -0800
  Re: Piece of code to read and process data from a file, separating chars and ints "A. Bolmarcich" <aggedor@earl-grey.cloud9.net> - 2016-12-24 14:49 +0000

csiph-web