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


Groups > comp.lang.c > #156943 > unrolled thread

Programming exercise/challenge

Started byTim Rentsch <tr.17687@z991.linuxsc.com>
First post2020-12-05 08:25 -0800
Last post2021-01-06 23:07 -0800
Articles 20 on this page of 399 — 24 participants

Back to article view | Back to comp.lang.c


Contents

  Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-05 08:25 -0800
    Re: Programming exercise/challenge Sjouke Burry <burrynulnulfour@ppllaanneett.nnll> - 2020-12-05 17:33 +0100
      Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-06 11:58 -0800
      Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-30 09:40 -0800
        Re: Programming exercise/challenge Bart <bc@freeuk.com> - 2020-12-30 18:20 +0000
          Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-31 01:04 -0800
          Re: Programming exercise/challenge Anton Shepelev <anton.txt@gmail.com> - 2021-01-02 22:05 +0300
            Re: Programming exercise/challenge Richard Damon <Richard@Damon-Family.org> - 2021-01-02 14:48 -0500
              Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-02 19:17 -0800
            Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-02 19:04 -0800
        Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2020-12-30 21:44 +0000
          Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2020-12-31 02:54 +0000
          Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-03 09:49 -0800
            Re: Programming exercise/challenge Anton Shepelev <anton.txt@gmail.com> - 2021-01-04 00:15 +0300
              Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2021-01-03 21:57 +0000
                Re: Programming exercise/challenge Bart <bc@freeuk.com> - 2021-01-03 23:00 +0000
                  Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2021-01-04 00:00 +0000
              Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-04 20:04 -0800
                Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2021-01-05 07:15 +0000
                  Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-07 22:30 -0800
            Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2021-01-04 18:42 +0000
              Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2021-01-04 21:23 +0000
                Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2021-01-04 23:41 +0000
    Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2020-12-05 16:39 +0000
      Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2020-12-05 16:58 +0000
        Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2020-12-05 17:08 +0000
        Re: Programming exercise/challenge Bart <bc@freeuk.com> - 2020-12-05 17:11 +0000
          Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2020-12-05 17:24 +0000
            Re: Programming exercise/challenge Bart <bc@freeuk.com> - 2020-12-05 17:52 +0000
              Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2020-12-05 18:30 +0000
              Re: Programming exercise/challenge Bart <bc@freeuk.com> - 2020-12-05 19:56 +0000
                Re: Programming exercise/challenge Bart <bc@freeuk.com> - 2020-12-06 14:51 +0000
        Re: Programming exercise/challenge Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-12-05 17:49 +0000
          Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2020-12-05 18:34 +0000
        Re: Programming exercise/challenge Bonita Montero <Bonita.Montero@gmail.com> - 2020-12-05 19:40 +0100
          Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2020-12-05 18:47 +0000
            Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2020-12-05 23:19 +0000
              Re: Programming exercise/challenge Bart <bc@freeuk.com> - 2020-12-05 23:56 +0000
              Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2020-12-08 02:26 +0000
                Re: Programming exercise/challenge Anton Shepelev <anton.txt@gmail.com> - 2020-12-08 16:04 +0300
                  Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-08 23:39 -0800
                    Re: Programming exercise/challenge Anton Shepelev <anton.txt@gmail.com> - 2020-12-12 23:34 +0300
                      Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-12 19:28 -0800
                      Re: Programming exercise/challenge kegs@provalid.com (Kent Dickey) - 2020-12-29 10:34 -0600
                        Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-29 20:05 -0800
      Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-06 06:03 -0800
    Re: Programming exercise/challenge dfs <nospam@dfs.com> - 2020-12-05 13:58 -0500
      Re: Programming exercise/challenge Jorgen Grahn <grahn+nntp@snipabacken.se> - 2020-12-05 21:37 +0000
        Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-06 06:13 -0800
          Re: Programming exercise/challenge jacobnavia <jacob@jacob.remcomp.fr> - 2020-12-06 18:00 +0100
            Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-06 12:31 -0800
      Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-06 06:26 -0800
    Re: Programming exercise/challenge jacobnavia <jacob@jacob.remcomp.fr> - 2020-12-05 23:32 +0100
      Re: Programming exercise/challenge jacobnavia <jacob@jacob.remcomp.fr> - 2020-12-06 17:18 +0100
        Re: Programming exercise/challenge jacobnavia <jacob@jacob.remcomp.fr> - 2020-12-06 17:51 +0100
        Re: Programming exercise/challenge Bart <bc@freeuk.com> - 2020-12-06 22:27 +0000
          Re: Programming exercise/challenge jacobnavia <jacob@jacob.remcomp.fr> - 2020-12-07 09:37 +0100
            Re: Programming exercise/challenge Richard Damon <Richard@Damon-Family.org> - 2020-12-07 07:36 -0500
              Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-08 22:49 -0800
    Re: Programming exercise/challenge Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-12-06 17:51 +0000
      Re: Programming exercise/challenge dfs <nospam@dfs.com> - 2020-12-06 13:03 -0500
        Re: Programming exercise/challenge Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-12-06 23:53 +0000
      Re: Programming exercise/challenge Bart <bc@freeuk.com> - 2020-12-06 19:53 +0000
        Re: Programming exercise/challenge Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-12-06 23:38 +0000
          Re: Programming exercise/challenge Bart <bc@freeuk.com> - 2020-12-07 00:17 +0000
            Re: Programming exercise/challenge Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-12-07 02:09 +0000
      Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-07 01:03 -0800
        Re: Programming exercise/challenge Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-12-07 12:05 +0000
          Re: Programming exercise/challenge Bart <bc@freeuk.com> - 2020-12-07 12:25 +0000
            Re: Programming exercise/challenge Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-12-07 13:33 +0000
              Re: Programming exercise/challenge Bart <bc@freeuk.com> - 2020-12-07 14:18 +0000
                Re: Programming exercise/challenge Bart <bc@freeuk.com> - 2020-12-07 14:31 +0000
                  Re: Programming exercise/challenge Richard Damon <Richard@Damon-Family.org> - 2020-12-07 12:58 -0500
                    Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-08 23:03 -0800
                Re: Programming exercise/challenge Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2020-12-07 07:12 -0800
                Re: Programming exercise/challenge Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-12-07 21:55 +0000
                Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-08 22:59 -0800
            Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-08 22:55 -0800
              Re: Programming exercise/challenge Richard Damon <Richard@Damon-Family.org> - 2020-12-09 07:45 -0500
                Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-24 11:26 -0800
                  Re: Programming exercise/challenge Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2020-12-24 12:24 -0800
                    Re: Programming exercise/challenge Richard Damon <Richard@Damon-Family.org> - 2020-12-24 17:19 -0500
                      Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-27 05:16 -0800
                    Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-27 04:17 -0800
                      Re: Programming exercise/challenge Richard Damon <Richard@Damon-Family.org> - 2020-12-27 08:27 -0500
                        Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-29 19:18 -0800
          Re: Programming exercise/challenge Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2020-12-07 05:15 -0800
            Re: Programming exercise/challenge Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-12-07 13:42 +0000
          Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-08 22:53 -0800
          Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-10 01:49 -0800
            Re: Programming exercise/challenge Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-12-10 22:35 +0000
              Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-10 21:17 -0800
                Re: Programming exercise/challenge Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-12-12 21:44 +0000
                  Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-12 19:46 -0800
                    Re: Programming exercise/challenge Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-12-13 12:21 +0000
                      Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-24 11:35 -0800
                        Re: Programming exercise/challenge Rosario19 <Ros@invalid.invalid> - 2020-12-31 00:46 +0100
                          Re: Programming exercise/challenge Rosario19 <Ros@invalid.invalid> - 2020-12-31 00:52 +0100
                            Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-31 00:34 -0800
                              Re: Programming exercise/challenge Rosario19 <Ros@invalid.invalid> - 2021-01-01 08:23 +0100
                                Re: Programming exercise/challenge Rosario19 <Ros@invalid.invalid> - 2021-01-01 10:09 +0100
                                  Re: Programming exercise/challenge Rosario19 <Ros@invalid.invalid> - 2021-01-01 11:38 +0100
                                    Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-01 08:24 -0800
        Re: Programming exercise/challenge "james...@alumni.caltech.edu" <jameskuyper@alumni.caltech.edu> - 2020-12-07 07:03 -0800
          Re: Programming exercise/challenge Anton Shepelev <anton.txt@gmail.com> - 2020-12-08 02:16 +0300
            Re: Programming exercise/challenge Anton Shepelev <anton.txt@gmail.com> - 2020-12-09 02:39 +0300
              Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-08 23:18 -0800
            Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-08 23:17 -0800
    Re: Programming exercise/challenge Anton Shepelev <anton.txt@gmail.com> - 2020-12-08 00:27 +0300
      Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-08 23:20 -0800
    Re: Programming exercise/challenge luser droog <luser.droog@gmail.com> - 2020-12-07 13:44 -0800
      Re: Programming exercise/challenge luser droog <luser.droog@gmail.com> - 2020-12-07 14:01 -0800
      Re: Programming exercise/challenge Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-12-07 22:16 +0000
        Re: Programming exercise/challenge luser droog <luser.droog@gmail.com> - 2020-12-07 15:10 -0800
          Re: Programming exercise/challenge Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-12-08 01:07 +0000
        Re: Programming exercise/challenge Bart <bc@freeuk.com> - 2020-12-08 00:34 +0000
      Re: Programming exercise/challenge luser droog <luser.droog@gmail.com> - 2020-12-08 18:17 -0800
        Re: Programming exercise/challenge luser droog <luser.droog@gmail.com> - 2020-12-09 00:56 -0800
          Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-09 02:30 -0800
            Re: Programming exercise/challenge luser droog <luser.droog@gmail.com> - 2020-12-09 15:14 -0800
              Re: Programming exercise/challenge luser droog <luser.droog@gmail.com> - 2020-12-09 15:44 -0800
              Re: Programming exercise/challenge Anton Shepelev <anton.txt@gmail.com> - 2020-12-12 23:56 +0300
                Re: Programming exercise/challenge luser droog <luser.droog@gmail.com> - 2020-12-12 13:29 -0800
                  Re: Programming exercise/challenge Anton Shepelev <anton.txt@gmail.com> - 2020-12-13 00:46 +0300
                    Re: Programming exercise/challenge luser droog <luser.droog@gmail.com> - 2020-12-12 13:59 -0800
                  Re: Programming exercise/challenge Anton Shepelev <anton.txt@gmail.com> - 2020-12-13 14:17 +0300
                    Re: Programming exercise/challenge luser droog <luser.droog@gmail.com> - 2020-12-13 12:58 -0800
                      Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-13 20:57 -0800
                        Re: Programming exercise/challenge luser droog <luser.droog@gmail.com> - 2020-12-14 20:44 -0800
                          Re: Programming exercise/challenge luser droog <luser.droog@gmail.com> - 2020-12-23 11:15 -0800
                            Re: Programming exercise/challenge Anton Shepelev <anton.txt@gmail.com> - 2020-12-23 23:45 +0300
                              Re: Programming exercise/challenge luser droog <luser.droog@gmail.com> - 2020-12-23 21:36 -0800
                                Re: Programming exercise/challenge luser droog <luser.droog@gmail.com> - 2020-12-24 09:11 -0800
                                  Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-24 15:30 -0800
                                    Re: Programming exercise/challenge luser droog <luser.droog@gmail.com> - 2020-12-24 23:18 -0800
                                      Re: Programming exercise/challenge luser droog <luser.droog@gmail.com> - 2020-12-24 23:56 -0800
                                        Re: Programming exercise/challenge luser droog <luser.droog@gmail.com> - 2020-12-28 12:01 -0800
                                          Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-29 19:31 -0800
                              Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-24 14:47 -0800
    Re: Programming exercise/challenge Anton Shepelev <anton.txt@gmail.com> - 2020-12-08 01:59 +0300
      Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-08 23:26 -0800
    Re: Programming exercise/challenge Richard Damon <Richard@Damon-Family.org> - 2020-12-07 19:02 -0500
      Re: Programming exercise/challenge Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-12-08 01:15 +0000
        Re: Programming exercise/challenge Richard Damon <Richard@Damon-Family.org> - 2020-12-07 20:38 -0500
          Re: Programming exercise/challenge Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-12-08 02:19 +0000
      Re: Programming exercise/challenge Bart <bc@freeuk.com> - 2020-12-08 11:44 +0000
        Re: Programming exercise/challenge Richard Damon <Richard@Damon-Family.org> - 2020-12-08 07:32 -0500
          Re: Programming exercise/challenge Bart <bc@freeuk.com> - 2020-12-08 14:40 +0000
            Re: Programming exercise/challenge "james...@alumni.caltech.edu" <jameskuyper@alumni.caltech.edu> - 2020-12-08 06:52 -0800
              Re: Programming exercise/challenge Bart <bc@freeuk.com> - 2020-12-08 17:31 +0000
                Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2020-12-08 20:16 +0000
                  Re: Programming exercise/challenge Bart <bc@freeuk.com> - 2020-12-08 20:48 +0000
                    Re: Programming exercise/challenge Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2020-12-08 15:34 -0800
                      Re: Programming exercise/challenge Anton Shepelev <anton.txt@gmail.com> - 2020-12-09 02:54 +0300
                        Re: Programming exercise/challenge Anton Shepelev <anton.txt@gmail.com> - 2020-12-09 12:33 +0300
                          Re: Programming exercise/challenge Anton Shepelev <anton.txt@gmail.com> - 2020-12-09 12:43 +0300
                            Re: Programming exercise/challenge Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2020-12-09 01:52 -0800
                              Re: Programming exercise/challenge Anton Shepelev <anton.txt@gmail.com> - 2020-12-13 00:28 +0300
                                Re: Programming exercise/challenge Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-12-12 21:40 +0000
                                  Re: Programming exercise/challenge Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2020-12-12 13:48 -0800
                          Re: Programming exercise/challenge Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2020-12-09 01:46 -0800
                      Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-08 23:29 -0800
            Re: Programming exercise/challenge Richard Damon <Richard@Damon-Family.org> - 2020-12-08 10:45 -0500
            Re: Programming exercise/challenge Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-12-08 17:16 +0000
        Re: Programming exercise/challenge "james...@alumni.caltech.edu" <jameskuyper@alumni.caltech.edu> - 2020-12-08 06:39 -0800
    Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-07 17:48 -0800
      Re: Programming exercise/challenge Richard Damon <Richard@Damon-Family.org> - 2020-12-07 21:03 -0500
        Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-09 03:02 -0800
          Re: Programming exercise/challenge Richard Damon <Richard@Damon-Family.org> - 2020-12-09 08:02 -0500
            Re: Programming exercise/challenge Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-12-09 16:49 +0000
              Re: Programming exercise/challenge Richard Damon <Richard@Damon-Family.org> - 2020-12-09 13:33 -0500
                Re: Programming exercise/challenge Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-12-09 19:57 +0000
                Re: Programming exercise/challenge Bart <bc@freeuk.com> - 2020-12-10 01:45 +0000
                  Re: Programming exercise/challenge Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2020-12-10 02:15 +0000
                    Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-24 11:24 -0800
                  Re: Programming exercise/challenge Richard Damon <Richard@Damon-Family.org> - 2020-12-09 21:57 -0500
                    Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2020-12-10 03:32 +0000
                      Re: Programming exercise/challenge Richard Damon <Richard@Damon-Family.org> - 2020-12-10 08:19 -0500
            Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-24 11:04 -0800
              Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2020-12-24 19:34 +0000
      Re: Programming exercise/challenge Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-12-08 02:22 +0000
        Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-09 03:04 -0800
          Re: Programming exercise/challenge Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-12-09 11:59 +0000
            Re: Programming exercise/challenge Richard Damon <Richard@Damon-Family.org> - 2020-12-09 08:11 -0500
            Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-10 00:02 -0800
              Re: Programming exercise/challenge Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-12-10 15:12 +0000
                Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-10 10:36 -0800
                  Re: Programming exercise/challenge Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-12-10 22:11 +0000
                    Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2020-12-10 23:34 +0000
                    Re: Programming exercise/challenge "james...@alumni.caltech.edu" <jameskuyper@alumni.caltech.edu> - 2020-12-10 20:11 -0800
                    Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-10 21:06 -0800
      Re: Programming exercise/challenge Anton Shepelev <anton.txt@gmail.com> - 2020-12-09 03:03 +0300
        Re: Programming exercise/challenge Richard Damon <Richard@Damon-Family.org> - 2020-12-08 21:21 -0500
          Re: Programming exercise/challenge Anton Shepelev <anton.txt@gmail.com> - 2020-12-09 12:50 +0300
            Re: Programming exercise/challenge Richard Damon <Richard@Damon-Family.org> - 2020-12-09 08:16 -0500
        Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-08 23:32 -0800
        Re: Programming exercise/challenge Bart <bc@freeuk.com> - 2020-12-09 12:21 +0000
          Re: Programming exercise/challenge Bart <bc@freeuk.com> - 2021-01-02 19:15 +0000
            Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-07 01:54 -0800
              Re: Programming exercise/challenge Bart <bc@freeuk.com> - 2021-01-22 22:36 +0000
                Re: Programming exercise/challenge Bart <bc@freeuk.com> - 2021-01-22 23:07 +0000
                  Re: Programming exercise/challenge Dave Dunfield <dave.dunfield@gmail.com> - 2021-01-22 20:27 -0800
                    Re: Programming exercise/challenge Bart <bc@freeuk.com> - 2021-01-23 13:05 +0000
                      Re: Programming exercise/challenge Dave Dunfield <dave.dunfield@gmail.com> - 2021-01-23 07:45 -0800
                        Re: Programming exercise/challenge Bart <bc@freeuk.com> - 2021-01-23 16:49 +0000
                      Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-23 11:22 -0800
                    Re: Programming exercise/challenge Bart <bc@freeuk.com> - 2021-01-23 16:53 +0000
                      Re: Programming exercise/challenge Dave Dunfield <dave.dunfield@gmail.com> - 2021-01-23 09:55 -0800
                  Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-23 21:35 -0800
                    Re: Programming exercise/challenge Bart <bc@freeuk.com> - 2021-01-24 18:17 +0000
                      Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-27 07:57 -0800
                Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-23 11:28 -0800
    Re: Programming exercise/challenge "jfbod...@gmail.com" <jfbode1029@gmail.com> - 2020-12-08 11:30 -0800
      Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2020-12-08 20:31 +0000
        Re: Programming exercise/challenge jacobnavia <jacob@jacob.remcomp.fr> - 2020-12-08 22:17 +0100
      Re: Programming exercise/challenge jacobnavia <jacob@jacob.remcomp.fr> - 2020-12-08 22:15 +0100
        Re: Programming exercise/challenge "jfbod...@gmail.com" <jfbode1029@gmail.com> - 2020-12-08 13:28 -0800
          Re: Programming exercise/challenge "jfbod...@gmail.com" <jfbode1029@gmail.com> - 2020-12-09 12:05 -0800
            Re: Programming exercise/challenge Anton Shepelev <anton.txt@gmail.com> - 2020-12-13 00:04 +0300
        Re: Programming exercise/challenge Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2020-12-08 21:38 +0000
      Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-09 03:25 -0800
    Re: Programming exercise/challenge Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-12-09 01:00 +0000
      Re: Programming exercise/challenge Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-12-09 03:09 +0000
        Re: Programming exercise/challenge Anton Shepelev <anton.txt@gmail.com> - 2020-12-13 00:35 +0300
          Re: Programming exercise/challenge Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-12-12 22:57 +0000
            Re: Programming exercise/challenge Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-12-12 23:43 +0000
              Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-12 19:47 -0800
              Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-12 23:27 -0800
                Re: Programming exercise/challenge Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-12-13 14:44 +0000
                  Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-24 11:47 -0800
    Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-09 03:36 -0800
      Re: Programming exercise/challenge Anton Shepelev <anton.txt@gmail.com> - 2020-12-09 14:51 +0300
        Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-09 11:35 -0800
          Re: Programming exercise/challenge Anton Shepelev <anton.txt@gmail.com> - 2020-12-10 02:33 +0300
            Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-10 00:05 -0800
              Re: Programming exercise/challenge Anton Shepelev <anton.txt@gmail.com> - 2020-12-10 14:59 +0300
                Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-10 20:32 -0800
            Re: Programming exercise/challenge Anton Shepelev <anton.txt@gmail.com> - 2020-12-12 23:45 +0300
              Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-12 19:24 -0800
          Re: Programming exercise/challenge Anton Shepelev <anton.txt@gmail.com> - 2020-12-13 00:17 +0300
            Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-12 19:23 -0800
      Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2020-12-09 19:31 +0000
      Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-09 12:01 -0800
        Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-09 12:25 -0800
    Re: Programming exercise/challenge kegs@provalid.com (Kent Dickey) - 2020-12-23 01:00 -0600
      Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-24 14:34 -0800
        Re: Programming exercise/challenge kegs@provalid.com (Kent Dickey) - 2020-12-26 23:03 -0600
          Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-27 06:29 -0800
            Re: Programming exercise/challenge kegs@provalid.com (Kent Dickey) - 2020-12-28 11:52 -0600
              Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-29 00:38 -0800
          Re: Programming exercise/challenge Anton Shepelev <anton.txt@gmail.com> - 2020-12-28 15:29 +0300
            Re: Programming exercise/challenge kegs@provalid.com (Kent Dickey) - 2020-12-28 17:12 -0600
              Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-28 23:54 -0800
          Re: Programming exercise/challenge kegs@provalid.com (Kent Dickey) - 2020-12-29 10:26 -0600
            Re: Programming exercise/challenge kegs@provalid.com (Kent Dickey) - 2020-12-29 10:37 -0600
              Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-29 19:59 -0800
    Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-12-30 09:17 -0800
      Re: Programming exercise/challenge Anton Shepelev <anton.txt@gmail.com> - 2020-12-31 16:54 +0300
        Re: Programming exercise/challenge kegs@provalid.com (Kent Dickey) - 2020-12-31 09:16 -0600
          Re: Programming exercise/challenge Bart <bc@freeuk.com> - 2020-12-31 15:56 +0000
            Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-07 02:41 -0800
          Re: Programming exercise/challenge Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2020-12-31 13:01 -0800
          Re: Programming exercise/challenge Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2020-12-31 14:15 -0800
          Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-01 08:03 -0800
        Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-01 07:42 -0800
          Re: Programming exercise/challenge Anton Shepelev <anton.txt@gmail.com> - 2021-01-02 21:59 +0300
            Re: Programming exercise/challenge Richard Damon <Richard@Damon-Family.org> - 2021-01-02 14:52 -0500
              Re: Programming exercise/challenge Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2021-01-02 12:30 -0800
              Re: Programming exercise/challenge James Kuyper <jameskuyper@alumni.caltech.edu> - 2021-01-02 18:17 -0500
                Re: Programming exercise/challenge Richard Damon <Richard@Damon-Family.org> - 2021-01-02 19:22 -0500
                Re: Programming exercise/challenge Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2021-01-02 17:48 -0800
                  Re: Programming exercise/challenge James Kuyper <jameskuyper@alumni.caltech.edu> - 2021-01-02 22:35 -0500
            Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-02 18:02 -0800
              Re: Programming exercise/challenge Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2021-01-03 00:42 -0800
                Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-04 20:12 -0800
    Re: Programming exercise/challenge Dave Dunfield <dave.dunfield@gmail.com> - 2021-01-04 07:04 -0800
      Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-04 20:22 -0800
        Re: Programming exercise/challenge Dave Dunfield <dave.dunfield@gmail.com> - 2021-01-05 04:24 -0800
          Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-05 06:22 -0800
            Re: Programming exercise/challenge Dave Dunfield <dave.dunfield@gmail.com> - 2021-01-05 08:55 -0800
              Re: Programming exercise/challenge Anton Shepelev <anton.txt@gmail.com> - 2021-01-05 20:22 +0300
                Re: Programming exercise/challenge Anton Shepelev <anton.txt@gmail.com> - 2021-01-05 20:27 +0300
                Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-05 14:20 -0800
              Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2021-01-05 17:23 +0000
                Re: Programming exercise/challenge Dave Dunfield <dave.dunfield@gmail.com> - 2021-01-05 10:18 -0800
                  Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2021-01-05 18:57 +0000
                Re: Programming exercise/challenge Dave Dunfield <dave.dunfield@gmail.com> - 2021-01-05 12:58 -0800
                  Re: Programming exercise/challenge Richard Damon <Richard@Damon-Family.org> - 2021-01-05 17:31 -0500
                  Re: Programming exercise/challenge James Kuyper <jameskuyper@alumni.caltech.edu> - 2021-01-05 17:50 -0500
                    Re: Programming exercise/challenge Dave Dunfield <dave.dunfield@gmail.com> - 2021-01-05 19:33 -0800
                      Re: Programming exercise/challenge Richard Damon <Richard@Damon-Family.org> - 2021-01-05 23:02 -0500
                        Re: Programming exercise/challenge Dave Dunfield <dave.dunfield@gmail.com> - 2021-01-05 21:00 -0800
                          Re: Programming exercise/challenge Richard Damon <Richard@Damon-Family.org> - 2021-01-06 07:42 -0500
                            Re: Programming exercise/challenge Dave Dunfield <dave.dunfield@gmail.com> - 2021-01-06 08:55 -0800
                              Re: Programming exercise/challenge Richard Damon <Richard@Damon-Family.org> - 2021-01-06 13:29 -0500
                                Re: Programming exercise/challenge Dave Dunfield <dave.dunfield@gmail.com> - 2021-01-06 14:09 -0800
                                  Re: Programming exercise/challenge James Kuyper <jameskuyper@alumni.caltech.edu> - 2021-01-06 22:11 -0500
                                  Re: Programming exercise/challenge Dave Dunfield <dave.dunfield@gmail.com> - 2021-01-07 03:10 -0800
                                    Re: Programming exercise/challenge Richard Damon <Richard@Damon-Family.org> - 2021-01-07 06:40 -0500
                                    Re: Programming exercise/challenge Dave Dunfield <dave.dunfield@gmail.com> - 2021-01-09 06:27 -0800
                                      Re: Programming exercise/challenge Dave Dunfield <dave.dunfield@gmail.com> - 2021-01-10 04:32 -0800
                                        Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-11 06:58 -0800
                                          Re: Programming exercise/challenge Dave Dunfield <dave.dunfield@gmail.com> - 2021-01-11 14:40 -0800
                                            Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-15 09:46 -0800
                                              Re: Programming exercise/challenge Dave Dunfield <dave.dunfield@gmail.com> - 2021-01-17 04:13 -0800
                                                Re: Programming exercise/challenge Bart <bc@freeuk.com> - 2021-01-17 14:18 +0000
                                                  Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2021-01-17 18:02 +0000
                                                    Re: Programming exercise/challenge Richard Damon <Richard@Damon-Family.org> - 2021-01-17 15:12 -0500
                                                    Re: Programming exercise/challenge Bart <bc@freeuk.com> - 2021-01-17 21:39 +0000
                                                Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-20 10:57 -0800
                                                  Re: Programming exercise/challenge Dave Dunfield <dave.dunfield@gmail.com> - 2021-01-21 11:37 -0800
                                                    Re: Programming exercise/challenge James Kuyper <jameskuyper@alumni.caltech.edu> - 2021-01-22 00:30 -0500
                                                      Re: Programming exercise/challenge Dave Dunfield <dave.dunfield@gmail.com> - 2021-01-22 09:09 -0800
                                                        Re: Programming exercise/challenge James Kuyper <jameskuyper@alumni.caltech.edu> - 2021-01-22 13:47 -0500
                                                        Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2021-01-22 19:00 +0000
                                                          Re: Programming exercise/challenge Bart <bc@freeuk.com> - 2021-01-22 19:42 +0000
                                                            Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2021-01-22 21:16 +0000
                                                              Re: Programming exercise/challenge James Kuyper <jameskuyper@alumni.caltech.edu> - 2021-01-22 16:41 -0500
                                                                Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-23 17:46 -0800
                                                              Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-23 09:51 -0800
                                                                Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2021-01-23 18:38 +0000
                                                          Re: Programming exercise/challenge Dave Dunfield <dave.dunfield@gmail.com> - 2021-01-23 04:52 -0800
                                                            Re: Programming exercise/challenge Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-01-23 15:45 +0000
                                                              Re: Programming exercise/challenge Dave Dunfield <dave.dunfield@gmail.com> - 2021-01-23 09:04 -0800
                                                                Re: Programming exercise/challenge Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-01-23 23:10 +0000
                                                                  Re: Programming exercise/challenge Dave Dunfield <dave.dunfield@gmail.com> - 2021-01-23 15:39 -0800
                                                            Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2021-01-23 15:59 +0000
                                                            Re: Programming exercise/challenge James Kuyper <jameskuyper@alumni.caltech.edu> - 2021-01-25 11:40 -0500
                                                      Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-23 09:47 -0800
                                                        Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2021-01-23 18:32 +0000
                                                    Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-23 17:26 -0800
                                                      Re: Programming exercise/challenge Bart <bc@freeuk.com> - 2021-01-24 01:55 +0000
                                                        Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-27 08:40 -0800
                                                      Re: Programming exercise/challenge Dave Dunfield <dave.dunfield@gmail.com> - 2021-01-23 20:51 -0800
                                                        Re: Programming exercise/challenge Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2021-01-24 02:28 -0800
                                                          Re: Programming exercise/challenge Dave Dunfield <dave.dunfield@gmail.com> - 2021-01-24 03:49 -0800
                                                            Re: Programming exercise/challenge Anton Shepelev <anton.txt@gmail.com> - 2021-01-24 15:38 +0300
                                                            Re: Programming exercise/challenge Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2021-01-24 14:04 -0800
                                                              Re: Programming exercise/challenge Dave Dunfield <dave.dunfield@gmail.com> - 2021-01-25 07:26 -0800
                                                                Re: Programming exercise/challenge David Brown <david.brown@hesbynett.no> - 2021-01-25 16:58 +0100
                                                                Re: Programming exercise/challenge luser droog <luser.droog@gmail.com> - 2021-01-25 09:14 -0800
                                                                  Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-27 07:32 -0800
                                                                    Re: Programming exercise/challenge Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-01-27 16:24 +0000
                                                                      Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-28 00:11 -0800
                                                                      Re: Programming exercise/challenge Anton Shepelev <anton.txt@g{oogle}mail.com> - 2021-01-28 12:25 +0300
                                                                        Re: Programming exercise/challenge James Kuyper <jameskuyper@alumni.caltech.edu> - 2021-01-28 06:18 -0500
                                                                          Re: Programming exercise/challenge Anton Shepelev <anton.txt@g{oogle}mail.com> - 2021-01-28 16:54 +0300
                                                                            Re: Programming exercise/challenge James Kuyper <jameskuyper@alumni.caltech.edu> - 2021-01-28 09:15 -0500
                                                                              Re: Programming exercise/challenge Anton Shepelev <anton.txt@g{oogle}mail.com> - 2021-01-28 20:07 +0300
                                                                                Re: Programming exercise/challenge James Kuyper <jameskuyper@alumni.caltech.edu> - 2021-01-28 15:58 -0500
                                                                                  Re: Programming exercise/challenge Anton Shepelev <anton.txt@gmail.com> - 2021-01-29 00:07 +0300
                                                                                    Re: Programming exercise/challenge James Kuyper <jameskuyper@alumni.caltech.edu> - 2021-01-28 16:17 -0500
                                                                          Re: Programming exercise/challenge Anton Shepelev <anton.txt@gmail.com> - 2021-01-29 00:03 +0300
                                                                        Re: Programming exercise/challenge Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2021-01-28 03:37 -0800
                                                                        Re: Programming exercise/challenge Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-01-28 22:50 +0000
                                                                          Re: Programming exercise/challenge Anton Shepelev <anton.txt@gmail.com> - 2021-01-30 23:14 +0300
                                                                            Re: Programming exercise/challenge Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-01-30 20:49 +0000
                                                                    Re: Programming exercise/challenge M Joshua Ryan <luser.droog@gmail.com> - 2021-01-28 00:05 -0600
                                                                  Re: Programming exercise/challenge Dave Dunfield <dave.dunfield@gmail.com> - 2021-01-27 11:51 -0800
                                                                Re: Programming exercise/challenge Bart <bc@freeuk.com> - 2021-01-25 17:22 +0000
                                                                Re: Programming exercise/challenge Dave Dunfield <dave.dunfield@gmail.com> - 2021-01-25 12:21 -0800
                                                                  Re: Programming exercise/challenge Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2021-01-25 14:27 -0800
                                                                    Re: Programming exercise/challenge Dave Dunfield <dave.dunfield@gmail.com> - 2021-01-25 19:41 -0800
                                                                      Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2021-01-26 04:46 +0000
                                                                        Re: Programming exercise/challenge Dave Dunfield <dave.dunfield@gmail.com> - 2021-01-26 06:30 -0800
                                                                      Re: Programming exercise/challenge David Brown <david.brown@hesbynett.no> - 2021-01-26 15:46 +0100
                                                                        Re: Programming exercise/challenge Dave Dunfield <dave.dunfield@gmail.com> - 2021-01-27 03:43 -0800
                                                                          Re: Programming exercise/challenge David Brown <david.brown@hesbynett.no> - 2021-01-27 13:43 +0100
                                                                            Re: Programming exercise/challenge Anton Shepelev <anton.txt@g{oogle}mail.com> - 2021-01-27 17:51 +0300
                                                                              Re: Programming exercise/challenge James Kuyper <jameskuyper@alumni.caltech.edu> - 2021-01-27 11:02 -0500
                                                                              Re: Programming exercise/challenge David Brown <david.brown@hesbynett.no> - 2021-01-27 17:03 +0100
                                                                            Re: Programming exercise/challenge Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2021-01-27 07:21 -0800
                                                                              Re: Programming exercise/challenge David Brown <david.brown@hesbynett.no> - 2021-01-27 17:09 +0100
                                                                            Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2021-01-27 17:04 +0000
                                                                              Re: Programming exercise/challenge David Brown <david.brown@hesbynett.no> - 2021-01-28 10:41 +0100
                                                                                Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2021-01-28 18:25 +0000
                                                                              Re: Programming exercise/challenge David Brown <david.brown@hesbynett.no> - 2021-01-28 10:44 +0100
                                                                                Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2021-01-28 21:33 +0000
                                                                                  Re: Programming exercise/challenge David Brown <david.brown@hesbynett.no> - 2021-01-29 10:39 +0100
                                                                  Re: Programming exercise/challenge James Kuyper <jameskuyper@alumni.caltech.edu> - 2021-01-25 23:52 -0500
                                                                  Re: Programming exercise/challenge Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-01-26 11:37 +0000
                                                                Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-27 08:04 -0800
                                                                  Re: Programming exercise/challenge Anton Shepelev <anton.txt@g{oogle}mail.com> - 2021-01-27 19:16 +0300
                                                                    Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-27 23:38 -0800
                                                        Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-27 13:43 -0800
                                                          Re: Programming exercise/challenge Dave Dunfield <dave.dunfield@gmail.com> - 2021-01-28 03:16 -0800
                                                            Re: Programming exercise/challenge James Kuyper <jameskuyper@alumni.caltech.edu> - 2021-01-28 06:42 -0500
                                                            Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-28 13:01 -0800
                              Re: Programming exercise/challenge James Kuyper <jameskuyper@alumni.caltech.edu> - 2021-01-06 13:35 -0500
                              Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2021-01-06 19:27 +0000
                              Re: Programming exercise/challenge Kaz Kylheku <563-365-8930@kylheku.com> - 2021-01-06 21:25 +0000
                      Re: Programming exercise/challenge James Kuyper <jameskuyper@alumni.caltech.edu> - 2021-01-06 00:37 -0500
                        Re: Programming exercise/challenge Dave Dunfield <dave.dunfield@gmail.com> - 2021-01-06 04:34 -0800
                          Re: Programming exercise/challenge James Kuyper <jameskuyper@alumni.caltech.edu> - 2021-01-06 11:54 -0500
                  Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-05 15:28 -0800
              Re: Programming exercise/challenge James Kuyper <jameskuyper@alumni.caltech.edu> - 2021-01-05 13:27 -0500
              Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-05 15:43 -0800
            Re: Programming exercise/challenge Dave Dunfield <dave.dunfield@gmail.com> - 2021-01-05 20:10 -0800
              Re: Programming exercise/challenge Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-06 23:07 -0800

Page 12 of 20 — ← Prev page 1 … 10 11 [12] 13 14 … 20  Next page →


#157142

FromTim Rentsch <tr.17687@z991.linuxsc.com>
Date2020-12-09 03:25 -0800
Message-ID<86wnxr43wm.fsf@linuxsc.com>
In reply to#157095
"jfbod...@gmail.com" <jfbode1029@gmail.com> writes:

> Here's my pathetic contribution. [...]

I have tried to collect all the programs posted.  I haven't
looked at any of them in real detail (at least not yet).  I did
try compiling and running all the ones I got, but it isn't always
easy to see how well they are working because of different
treatment of some things.  I would like to make this request, to
make comparing the programs easier, namely, when a /*...*/
comment is removed, put a single space character in its place.
That will make it easier for me to zero in on just where there
are real differences in behavior, which would help me post a set
of example cases for people to try.

To help people out, here is a test input file that I found on the
CLC wiki site (with thanks to Lew Pitcher for steering me to
this).  It certainly isn't a complete set of tests, and it has a
glitch of sorts because it assumes //... style comments are not
to be treated as comments, but I think it still can be helpful
to try out different uncommenting programs.

=============================================================================

/* krx123tp.c - a test program to serve as input to krx123*.c
 *
 * This is a shameless copy of Ben Pfaff's solution, to which I have
 * added a few extra statements to further test the candidate programs
 * for this exercise. As Ben says, this program already contains lots
 * of examples of comments and not-quite-comments. I've just made it
 * a little tougher.
 *
 */

/* K&R2 1-23: Write a program to remove all comments from a C program.
   Don't forget to handle quoted strings and character constants
   properly.  C comments do not nest.

   This solution does not deal with other special cases, such as
   trigraphs, line continuation with \, or <> quoting on #include,
   since these aren't mentioned up 'til then in K&R2.  Perhaps this is
   cheating.

   Note that this program contains both comments and quoted strings of
   text that looks like comments, so running it on itself is a
   reasonable test.  It also contains examples of a comment that ends
   in a star and a comment preceded by a slash.  Note that the latter
   will break C99 compilers and C89 compilers with // comment
   extensions.

   Interface: The C source file is read from stdin and the
   comment-less output is written to stdout. **/

#include <stdio.h>

int
main(void)
{
    /* State machine's current state. */
    enum {
        PROGRAM,
        SLASH,
        COMMENT,
        STAR,
        QUOTE,
        LITERAL
    } state;

    /* If state == QUOTE, then ' or ".  Otherwise, undefined. */
    int quote;

    state = PROGRAM;
    for (;;) {
        int c = getchar();
        if (c == EOF) {
            if (state == SLASH)
                putchar('/' //**/
                        1 / 1 /'\1');
            break;
        }

        if(0)
          printf("%d\n", 6/'\2'); 
        /* line of code, and comment, added by RJH 10 July 2000 */

        switch (state) {
        case SLASH:
            /* Program text following a slash. */
            if (c == "/*"[1]) {
                state = COMMENT;
                break;
            }
            putchar('/');
            state = PROGRAM;
            /* Fall through. */

        case PROGRAM:
            /* Program text. */
            if (c == '\'' || c == '"') {
                quote = c;
                state = QUOTE;
                putchar(c);
            }
            else if (c == "/*"[0])
                state = SLASH;
            else
                putchar(c);
            break;

        case COMMENT:
            /* Comment. */
            if (c == '*')
                state = STAR;
            break;

        case STAR:
            /* Comment following a star. */
            if (c == '/')
                state = PROGRAM;
            else if (c != '*') {
                state = COMMENT;
                putchar (' ');
            }
            break;

        case QUOTE:
            /* Within quoted string or character constant. */
            putchar(c);
            if (c == '\\')
                state = LITERAL;
            else if (c == quote)
                state = PROGRAM;
            break;

        case LITERAL:
            /* Within quoted string or character constant, following \. */
            putchar(c);
            state = QUOTE;
            break;

        default:
            abort();
        }
    }

    return /* this comment added by RJH 10 July 2000 */ 0;
}

/* 
   Local variables:
   compile-command: "checkergcc -W -Wall -ansi -pedantic knr123.c -o knr123"
   End: 
*/

[toc] | [prev] | [next] | [standalone]


#157109

FromBen Bacarisse <ben.usenet@bsb.me.uk>
Date2020-12-09 01:00 +0000
Message-ID<87sg8fg5es.fsf@bsb.me.uk>
In reply to#156943
Tim Rentsch <tr.17687@z991.linuxsc.com> writes:

> Short problem statement:  a C program to remove comments from C
> source input.

The details of the specification seemed a little off to me but I didn't
feel anyone had really mailed it yet, so I had a go myself.

I don't think I've really nailed it either.  The requirement to preserve
uncommented line continuations breaks the natural layering of the input
process.  I've done done that with a hack: line continuations are echoed
as they are read unless this is suppressed by passing a null output file
pointer to get_logical.  This passes "state" information ("are we in a
comment?") down into the lowest level input function which I'm not keen
about.  However, I think it works.

Nothing else is really interesting about it.  Characters from logical
lines are read, and a function is called to handle each of the different
cases.

I view of Bart's comments about functions for the sake of them, I
suppose it's worth mentioning that once I'd found myself writing a test

  if ((c = get_logical(in, out)) != X && x != EOF ...

a couple of times, I decided to write a one-line function so I could
write

  if (next_not_eof_or(X, &c, in, out) ...

instead.  I think it just about pays its way.


#include <stdio.h>
#include <stdbool.h>

int get_logical(FILE *in, FILE *out);
bool next_not_eof_or(int end_ch, int *cp, FILE *in, FILE *out);
void skip_quoted(FILE *in, FILE *out, int quote_char);
void possible_comment(FILE *in, FILE *out);
void strip_comments(FILE *in, FILE *out);


int main(int argc, char **argv)
{
     FILE *in = argc > 1 ? fopen(argv[1], "r") : stdin;
     if (in) strip_comments(in, stdout);
     if (in != stdin) fclose(in);
}

void strip_comments(FILE *in, FILE *out)
{
     int c;
     while ((c = get_logical(in, out)) != EOF)
          if (c == '"' || c == '\'')
               skip_quoted(in, out, c);
          else if (c == '/')
               possible_comment(in, out);
          else fputc(c, out);
}

void skip_quoted(FILE *in, FILE *out, int quote_char)
{
     int c;
     fputc(quote_char, out);
     while (next_not_eof_or(quote_char, &c, in, out)) {
          fputc(c, out);
          if (c == '\\')
               fputc(get_logical(in, out), out);
     }
     if (c == EOF)
          fputs("Unterminated literal.\n", stderr);
     else fputc(c, out);
}

void possible_comment(FILE *in, FILE *out)
{
     int c = get_logical(in, NULL);
     if (c == '/')
          while (next_not_eof_or('\n', &c, in, NULL));
     else if (c == '*')
          while (next_not_eof_or('*', &c, in, NULL) ||
                 next_not_eof_or('/', &c, in, NULL));
     else {
          fputc('/', out);
          if (c != EOF)
               fputc(c, out);
          return;
     }
     if (c == EOF)
          fputs("Unterminated comment.\n", stderr);
     else fputc(' ', out);
}

bool next_not_eof_or(int end_ch, int *cp, FILE *in, FILE *out)
{
     return (*cp = get_logical(in, out)) != end_ch && *cp != EOF;
}

int get_logical(FILE *in, FILE *out)
{
     int c = fgetc(in), next;
     while (c == '\\' && (next = fgetc(in)) == '\n') {
          if (out)
               fputs("\\\n", out);
          c = fgetc(in);
     }
     if (c == '\\')
          ungetc(next, in);
     return c;
}

-- 
Ben.

[toc] | [prev] | [next] | [standalone]


#157114

FromBen Bacarisse <ben.usenet@bsb.me.uk>
Date2020-12-09 03:09 +0000
Message-ID<87blf3fzfr.fsf@bsb.me.uk>
In reply to#157109
Ben Bacarisse <ben.usenet@bsb.me.uk> writes:

> Tim Rentsch <tr.17687@z991.linuxsc.com> writes:
>
>> Short problem statement:  a C program to remove comments from C
>> source input.
>
> The details of the specification seemed a little off to me but I didn't
> feel anyone had really mailed it yet, so I had a go myself.
>
> I don't think I've really nailed it either.  The requirement to preserve
> uncommented line continuations breaks the natural layering of the input
> process.  I've done done that with a hack: line continuations are echoed
> as they are read unless this is suppressed by passing a null output file
> pointer to get_logical.  This passes "state" information ("are we in a
> comment?") down into the lowest level input function which I'm not keen
> about.  However, I think it works.

Nope.  That version did not preserve continuations that follow a /
which, in the end, is not the start of a comment.  They need to be
counted (in this program organisation).  Annoyingly, I started by just
counting them but that complicated the code the called get_logical.  So
then thought I could make things simpler by just conditionally echoing
them instead, whereas what I needed to do is to always either echo them
/or/ counts them.  With this organisation there is only one place where
they have to be put back.

Version 2:

#include <stdio.h>
#include <stdbool.h>

int get_logical(FILE *in, FILE *out, unsigned *count_cont);
bool next_not_eof_or(int end_ch, int *cp, FILE *in, FILE *out);
void skip_quoted(FILE *in, FILE *out, int quote_char);
void possible_comment(FILE *in, FILE *out);
void strip_comments(FILE *in, FILE *out);


int main(int argc, char **argv)
{
     FILE *in = argc > 1 ? fopen(argv[1], "r") : stdin;
     if (in) strip_comments(in, stdout);
     if (in != stdin) fclose(in);
}

void strip_comments(FILE *in, FILE *out)
{
     int c;
     while ((c = get_logical(in, out, 0)) != EOF)
          if (c == '"' || c == '\'')
               skip_quoted(in, out, c);
          else if (c == '/')
               possible_comment(in, out);
          else fputc(c, out);
}

void skip_quoted(FILE *in, FILE *out, int quote_char)
{
     int c;
     fputc(quote_char, out);
     while (next_not_eof_or(quote_char, &c, in, out)) {
          fputc(c, out);
          if (c == '\\')
               fputc(get_logical(in, out, 0), out);
     }
     if (c == EOF)
          fputs("Unterminated literal.\n", stderr);
     else fputc(c, out);
}

void possible_comment(FILE *in, FILE *out)
{
     unsigned n_cont = 0;
     int c = get_logical(in, out, &n_cont);
     if (c == '/')
          while (next_not_eof_or('\n', &c, in, out));
     else if (c == '*')
          while (next_not_eof_or('*', &c, in, out) ||
                 next_not_eof_or('/', &c, in, out));
     else {
          fputc('/', out);
          while (n_cont--)
               fputs("\\\n", out);
          if (c != EOF)
               fputc(c, out);
          return;
     }
     if (c == EOF)
          fputs("Unterminated comment.\n", stderr);
     else fputc(' ', out);
}

bool next_not_eof_or(int end_ch, int *cp, FILE *in, FILE *out)
{
     unsigned dummy;
     return (*cp = get_logical(in, out, &dummy)) != end_ch && *cp != EOF;
}

int get_logical(FILE *in, FILE *out, unsigned *count_cont)
{
     int c = fgetc(in), next;
     while (c == '\\' && (next = fgetc(in)) == '\n') {
          if (count_cont)
               ++*count_cont;
          else fputs("\\\n", out);
          c = fgetc(in);
     }
     if (c == '\\')
          ungetc(next, in);
     return c;
}

-- 
Ben.

[toc] | [prev] | [next] | [standalone]


#157235

FromAnton Shepelev <anton.txt@gmail.com>
Date2020-12-13 00:35 +0300
Message-ID<20201213003535.ab498c90e81dc7726ccf10f3@gmail.com>
In reply to#157114
Ben Bacarisse:

> Version 2:

It does not seem to handle this input, between the `---'
delimeters:

---
a
/***/
b
---

-- 
()  ascii ribbon campaign -- against html e-mail
/\  http://preview.tinyurl.com/qcy6mjc [archived]

[toc] | [prev] | [next] | [standalone]


#157241

FromBen Bacarisse <ben.usenet@bsb.me.uk>
Date2020-12-12 22:57 +0000
Message-ID<87lfe28wfr.fsf@bsb.me.uk>
In reply to#157235
Anton Shepelev <anton.txt@gmail.com> writes:

> Ben Bacarisse:
>
>> Version 2:
>
> It does not seem to handle this input, between the `---'
> delimeters:
>
> ---
> a
> /***/
> b
> ---

Indeed not.  Thanks (I suppose!).  I'm not actively working on it though
so it's going to remain a bug.

-- 
Ben.

[toc] | [prev] | [next] | [standalone]


#157242

FromBen Bacarisse <ben.usenet@bsb.me.uk>
Date2020-12-12 23:43 +0000
Message-ID<87a6ui8uac.fsf@bsb.me.uk>
In reply to#157241
Ben Bacarisse <ben.usenet@bsb.me.uk> writes:

> Anton Shepelev <anton.txt@gmail.com> writes:
>
>> Ben Bacarisse:
>>
>>> Version 2:
>>
>> It does not seem to handle this input, between the `---'
>> delimeters:
>>
>> ---
>> a
>> /***/
>> b
>> ---
>
> Indeed not.  Thanks (I suppose!).  I'm not actively working on it though
> so it's going to remain a bug.

Could not resist looking...  Seems like an easy bug to fix but those are
every programmer's famous last words!

#include <stdio.h>
#include <stdbool.h>

int get_logical(FILE *in, FILE *out, unsigned *count_cont);
bool next_not_eof_or(int end_ch, int *cp, FILE *in, FILE *out);
void skip_quoted(FILE *in, FILE *out, int quote_char);
void possible_comment(FILE *in, FILE *out);
void strip_comments(FILE *in, FILE *out);


int main(int argc, char **argv)
{
     FILE *in = argc > 1 ? fopen(argv[1], "r") : stdin;
     if (in) strip_comments(in, stdout);
     if (in != stdin) fclose(in);
}

void strip_comments(FILE *in, FILE *out)
{
     int c;
     while ((c = get_logical(in, out, 0)) != EOF)
          if (c == '"' || c == '\'')
               skip_quoted(in, out, c);
          else if (c == '/')
               possible_comment(in, out);
          else fputc(c, out);
}

void skip_quoted(FILE *in, FILE *out, int quote_char)
{
     int c;
     fputc(quote_char, out);
     while (next_not_eof_or(quote_char, &c, in, out)) {
          fputc(c, out);
          if (c == '\\')
               fputc(get_logical(in, out, 0), out);
          else if (c == '\n')
               fputs("Newline in literal.\n", stderr);
     }
     if (c == EOF)
          fputs("Unterminated literal.\n", stderr);
     else fputc(c, out);
}

void possible_comment(FILE *in, FILE *out)
{
     unsigned n_cont = 0;
     int c = get_logical(in, out, &n_cont);
     if (c == '/')
          while (next_not_eof_or('\n', &c, in, out));
     else if (c == '*') {
          int prev = 0;
          while (next_not_eof_or('/', &c, in, out) || prev != '*')
               prev = c;
     }
     else {
          fputc('/', out);
          while (n_cont--)
               fputs("\\\n", out);
          if (c != EOF)
               fputc(c, out);
          return;
     }
     if (c == EOF)
          fputs("Unterminated comment.\n", stderr);
     else fputc(' ', out);
}

bool next_not_eof_or(int end_ch, int *cp, FILE *in, FILE *out)
{
     unsigned dummy;
     return (*cp = get_logical(in, out, &dummy)) != end_ch && *cp != EOF;
}

int get_logical(FILE *in, FILE *out, unsigned *count_cont)
{
     int c = fgetc(in), next;
     while (c == '\\' && (next = fgetc(in)) == '\n') {
          if (count_cont)
               ++*count_cont;
          else fputs("\\\n", out);
          c = fgetc(in);
     }
     if (c == '\\')
          ungetc(next, in);
     return c;
}


-- 
Ben.

[toc] | [prev] | [next] | [standalone]


#157248

FromTim Rentsch <tr.17687@z991.linuxsc.com>
Date2020-12-12 19:47 -0800
Message-ID<864kkq1i51.fsf@linuxsc.com>
In reply to#157242
Ben Bacarisse <ben.usenet@bsb.me.uk> writes:

> Ben Bacarisse <ben.usenet@bsb.me.uk> writes:
>
>> Anton Shepelev <anton.txt@gmail.com> writes:
>>
>>> Ben Bacarisse:
>>>
>>>> Version 2:
>>>
>>> It does not seem to handle this input, between the `---'
>>> delimeters:
>>>
>>> ---
>>> a
>>> /***/
>>> b
>>> ---
>>
>> Indeed not.  Thanks (I suppose!).  I'm not actively working on it though
>> so it's going to remain a bug.
>
> Could not resist looking...  Seems like an easy bug to fix but those are
> every programmer's famous last words!
>
> [code]

I haven't yet pulled this new version into my collection of posted
answer but expect to soon.

[toc] | [prev] | [next] | [standalone]


#157250

FromTim Rentsch <tr.17687@z991.linuxsc.com>
Date2020-12-12 23:27 -0800
Message-ID<86zh2iyxlw.fsf@linuxsc.com>
In reply to#157242
Ben Bacarisse <ben.usenet@bsb.me.uk> writes:

> Ben Bacarisse <ben.usenet@bsb.me.uk> writes:
>
>> Anton Shepelev <anton.txt@gmail.com> writes:
>>
>>> Ben Bacarisse:
>>>
>>>> Version 2:
>>>
>>> It does not seem to handle this input, between the `---'
>>> delimeters:
>>>
>>> ---
>>> a
>>> /***/
>>> b
>>> ---
>>
>> Indeed not.  Thanks (I suppose!).  I'm not actively working on it though
>> so it's going to remain a bug.
>
> Could not resist looking...  [...]

Three test cases to try:

---
'\
x'
---
"\
x"
---
alpha // foo
beta
---

[toc] | [prev] | [next] | [standalone]


#157253

FromBen Bacarisse <ben.usenet@bsb.me.uk>
Date2020-12-13 14:44 +0000
Message-ID<87mtyh7oln.fsf@bsb.me.uk>
In reply to#157250
Tim Rentsch <tr.17687@z991.linuxsc.com> writes:

> Ben Bacarisse <ben.usenet@bsb.me.uk> writes:
>
>> Ben Bacarisse <ben.usenet@bsb.me.uk> writes:
>>
>>> Anton Shepelev <anton.txt@gmail.com> writes:
>>>
>>>> Ben Bacarisse:
>>>>
>>>>> Version 2:
>>>>
>>>> It does not seem to handle this input, between the `---'
>>>> delimeters:
>>>>
>>>> ---
>>>> a
>>>> /***/
>>>> b
>>>> ---
>>>
>>> Indeed not.  Thanks (I suppose!).  I'm not actively working on it though
>>> so it's going to remain a bug.
>>
>> Could not resist looking...  [...]
>
> Three test cases to try:
>
> ---
> '\
> x'
> ---

Yes, thanks.  The \ is not echoed.  Shorter now, since I decided to get
rid of the 'next_not_eof_or' function rather then complicate it
(sometimes the program needs to echo \ sometimes it should count them).

> ---
> alpha // foo
> beta
> ---

Hmm...  I don't see a problem.  Does retaining the newline not meet the
spec?

Version... what?  I've lost count.

#include <stdio.h>
#include <stdbool.h>

int get_logical(FILE *in, FILE *out, unsigned *count_cont);
void skip_quoted(FILE *in, FILE *out, int quote_char);
void possible_comment(FILE *in, FILE *out);
void strip_comments(FILE *in, FILE *out);


int main(int argc, char **argv)
{
     FILE *in = argc > 1 ? fopen(argv[1], "r") : stdin;
     if (in) strip_comments(in, stdout);
     if (in != stdin) fclose(in);
}

void strip_comments(FILE *in, FILE *out)
{
     int c;
     while ((c = get_logical(in, out, 0)) != EOF)
          if (c == '"' || c == '\'')
               skip_quoted(in, out, c);
          else if (c == '/')
               possible_comment(in, out);
          else fputc(c, out);
}

void skip_quoted(FILE *in, FILE *out, int quote_char)
{
     int c;
     fputc(quote_char, out);
     while ((c = get_logical(in, out, 0)) != quote_char && c != EOF) {
          fputc(c, out);
          if (c == '\\')
               fputc(get_logical(in, out, 0), out);
          else if (c == '\n')
               fputs("Newline in literal.\n", stderr);
     }
     if (c == EOF)
          fputs("Unterminated literal.\n", stderr);
     else fputc(c, out);
}

void possible_comment(FILE *in, FILE *out)
{
     unsigned n_cont = 0, dummy;
     int c = get_logical(in, out, &n_cont);
     if (c == '/')
          while ((c = get_logical(in, out, &dummy)) != '\n' && c != EOF);
     else if (c == '*') {
          int prev = 0;
          while ((c = get_logical(in, out, &dummy)) != '\n' && c != EOF
                 || prev != '*')
               prev = c;
     }
     else {
          fputc('/', out);
          while (n_cont--)
               fputs("\\\n", out);
          if (c != EOF)
               fputc(c, out);
          return;
     }
     if (c == EOF)
          fputs("Unterminated comment.\n", stderr);
     else fputc(' ', out);
}

int get_logical(FILE *in, FILE *out, unsigned *count_cont)
{
     int c = fgetc(in), next;
     while (c == '\\' && (next = fgetc(in)) == '\n') {
          if (count_cont)
               ++*count_cont;
          else fputs("\\\n", out);
          c = fgetc(in);
     }
     if (c == '\\')
          ungetc(next, in);
     return c;
}

-- 
Ben.

[toc] | [prev] | [next] | [standalone]


#157704

FromTim Rentsch <tr.17687@z991.linuxsc.com>
Date2020-12-24 11:47 -0800
Message-ID<86wnx7x9z5.fsf@linuxsc.com>
In reply to#157253
Ben Bacarisse <ben.usenet@bsb.me.uk> writes:

> Tim Rentsch <tr.17687@z991.linuxsc.com> writes:
>
>> Ben Bacarisse <ben.usenet@bsb.me.uk> writes:
>>
>>> Ben Bacarisse <ben.usenet@bsb.me.uk> writes:
>>>
>>>> Anton Shepelev <anton.txt@gmail.com> writes:
>>>>
>>>>> Ben Bacarisse:
>>>>>
>>>>>> Version 2:
>>>>>
>>>>> It does not seem to handle this input, between the `---'
>>>>> delimeters:
>>>>>
>>>>> ---
>>>>> a
>>>>> /***/
>>>>> b
>>>>> ---
>>>>
>>>> Indeed not.  Thanks (I suppose!).  I'm not actively working on it though
>>>> so it's going to remain a bug.
>>>
>>> Could not resist looking...  [...]
>>
>> Three test cases to try:
>>
>> ---
>> '\
>> x'
>> ---
>
> Yes, thanks.  The \ is not echoed.  Shorter now, since I decided to get
> rid of the 'next_not_eof_or' function rather then complicate it
> (sometimes the program needs to echo \ sometimes it should count them).
>
>> ---
>> alpha // foo
>> beta
>> ---
>
> Hmm...  I don't see a problem.  Does retaining the newline not meet the
> spec?

When I ran the code on this case, it output

    alpha beta

whereas I was expecting

    alpha 
    beta

(Disclaimer: what the output was is being given from memory.)

[...]

> void possible_comment(FILE *in, FILE *out)
> {
>      unsigned n_cont = 0, dummy;
>      int c = get_logical(in, out, &n_cont);
>      if (c == '/')
>           while ((c = get_logical(in, out, &dummy)) != '\n' && c != EOF);
>      else if (c == '*') {
>           int prev = 0;
>           while ((c = get_logical(in, out, &dummy)) != '\n' && c != EOF
>                  || prev != '*')
>                prev = c;
>      }
>      else {
>           fputc('/', out);
>           while (n_cont--)
>                fputs("\\\n", out);
>           if (c != EOF)
>                fputc(c, out);
>           return;
>      }
>      if (c == EOF)
>           fputs("Unterminated comment.\n", stderr);
>      else fputc(' ', out);
> }

I found several problems in this function.  Do you want to know
more about what those are, or is this enough for you to try
tracking them down without any other hints?

[toc] | [prev] | [next] | [standalone]


#157143

FromTim Rentsch <tr.17687@z991.linuxsc.com>
Date2020-12-09 03:36 -0800
Message-ID<86sg8f43fb.fsf@linuxsc.com>
In reply to#156943
Hello everyone,

It's nice to see so many people joining in and putting up their
programs.  I am trying to work through the backlog of recent
traffic, which looks like it will take at least another day.
Would this weekend be a good time for me to post my code?
Sooner?  Later?  Did the sample test input file help anyone
with their own program?

[toc] | [prev] | [next] | [standalone]


#157144

FromAnton Shepelev <anton.txt@gmail.com>
Date2020-12-09 14:51 +0300
Message-ID<20201209145102.a4adfe0b03a547724b4a7d5b@gmail.com>
In reply to#157143
Tim Rentsch:

> It's nice to see so many people joining in and putting up
> their programs.  I am trying to work through the backlog
> of recent traffic, which looks like it will take at least
> another day.  Would this weekend be a good time for me to
> post my code?

I am in no hurry at, myself having precious little free
time.

> Did the sample test input file help anyone with their own
> program?

The test sample that seems to consist if an uncommenting
program, or did I miss it?  Test cases from various authors
in this thread have helped me.

-- 
()  ascii ribbon campaign -- against html e-mail
/\  http://preview.tinyurl.com/qcy6mjc [archived]

[toc] | [prev] | [next] | [standalone]


#157158

FromTim Rentsch <tr.17687@z991.linuxsc.com>
Date2020-12-09 11:35 -0800
Message-ID<86o8j24vt7.fsf@linuxsc.com>
In reply to#157144
Anton Shepelev <anton.txt@gmail.com> writes:

> Tim Rentsch:
>
>> Did the sample test input file help anyone with their own
>> program?
>
> The test sample that seems to consist if an uncommenting
> program, or did I miss it?

You didn't miss it, the test input file is indeed source
code for a comment removing program.  It was taken from
this page

    https://clc-wiki.net/wiki/K%26R2_solutions:Chapter_1:Exercise_23

and you may want to try looking there for other ideas.

[toc] | [prev] | [next] | [standalone]


#157172

FromAnton Shepelev <anton.txt@gmail.com>
Date2020-12-10 02:33 +0300
Message-ID<20201210023321.81eb748838edb6118caa3168@gmail.com>
In reply to#157158
Tim Rentsch to Anton Shepelev:

> > The test sample that seems to consist if an uncommenting
> > program, or did I miss it?
>
> You didn't miss it, the test input file is indeed source
> code for a comment removing program.  It was taken from
> this page
>
>    https://clc-wiki.net/wiki/K%26R2_solutions:Chapter_1:Exercise_23
>
> and you may want to try looking there for other ideas.

My purpose is to finish my program without looking at
anybody's code.  And I will come up with some great test
cases in the process!

-- 
()  ascii ribbon campaign -- against html e-mail
/\  http://preview.tinyurl.com/qcy6mjc [archived]

[toc] | [prev] | [next] | [standalone]


#157182

FromTim Rentsch <tr.17687@z991.linuxsc.com>
Date2020-12-10 00:05 -0800
Message-ID<864kku3x2d.fsf@linuxsc.com>
In reply to#157172
Anton Shepelev <anton.txt@gmail.com> writes:

> Tim Rentsch to Anton Shepelev:
>
>>> The test sample that seems to consist if an uncommenting
>>> program, or did I miss it?
>>
>> You didn't miss it, the test input file is indeed source
>> code for a comment removing program.  It was taken from
>> this page
>>
>>    https://clc-wiki.net/wiki/K%26R2_solutions:Chapter_1:Exercise_23
>>
>> and you may want to try looking there for other ideas.
>
> My purpose is to finish my program without looking at
> anybody's code.

Oh, I wasn't suggesting anyone look at the program to see how
it works, only to use it for a test input.

> And I will come up with some great test cases in the process!

If I work up a list of "interesting inputs" would you like to
see those?  I'm considering doing that but haven't absolutely
decided yet.

[toc] | [prev] | [next] | [standalone]


#157188

FromAnton Shepelev <anton.txt@gmail.com>
Date2020-12-10 14:59 +0300
Message-ID<20201210145935.fb46400c8fb61836614602a5@gmail.com>
In reply to#157182
Tim Rentsch:

> If I work up a list of "interesting inputs" would you like
> to see those?  I'm considering doing that but haven't
> absolutely decided yet.

Yes. It would be a good supplement to the collectioon of
solutions.

-- 
()  ascii ribbon campaign -- against html e-mail
/\  http://preview.tinyurl.com/qcy6mjc [archived]

[toc] | [prev] | [next] | [standalone]


#157212

FromTim Rentsch <tr.17687@z991.linuxsc.com>
Date2020-12-10 20:32 -0800
Message-ID<86360d2c91.fsf@linuxsc.com>
In reply to#157188
Anton Shepelev <anton.txt@gmail.com> writes:

> Tim Rentsch:
>
>> If I work up a list of "interesting inputs" would you like
>> to see those?  I'm considering doing that but haven't
>> absolutely decided yet.
>
> Yes.  It would be a good supplement to the collectioon of
> solutions.

Some cases follow.  At the start of each example line is a marker
(==) to indicate it is an example (and which go on for one or
more lines after the ==).  End of file is indicated by <EOF>.  A
line marked with ==x is an error example.  A line marked as ==~
shows an example that might be accepted as good but doesn't have
to be.  None of the example lines have trailing spaces.

Disclaimer:  I have tried to be accurate.  Forgive me if there are
any mistakes in the labelling.  I haven't been as thorough as I
would have liked, but for better or worse here are some cases.


 ==   ''

 ==   'z'

 ==x   '

 ==x   '<EOF>

 ==    '\a'

 ==    '\
'

 ==    '\
z'

 ==x   '\<EOF>

 ==    '\\
a'

 ==x   '\\<EOF>

 ==    '\\'

 ==    '\\z'

 ==    '\\\a'

 ==x    '\\

        yyy'

 ==     '\\
\'



 ==   ""

 ==   "z"

 ==x   "

 ==x   "<EOF>

 ==    "\a"

 ==    "\
"

 ==    "\
z"

 ==x   "\<EOF>

 ==    "\\
a"

 ==x   "\\<EOF>

 ==    "\\"

 ==    "\\z"

 ==    "\\\a"

 ==x    "\\

        yyy"

 ==     "\\
\"



 ==~    /<EOF>

 ==~    /\<EOF>

 ==~    //<EOF>

 ==~    //\<EOF>

 ==~    //\
<EOF>

 ==     /z

 ==     /\
z

 ==     /\
\
z

 ==     //z

 ==     /\
/z

 ==     /\
/\
z

 ==     //\\
z

 ==     //\\z


 

 ==x    /*<EOF>

 ==x    /*\<EOF>

 ==x    /*\
<EOF>

 ==x    /**<EOF>

 ==x    /**\<EOF>

 ==x    /**\
<EOF>

 ==     /\
*z*/

 ==     /\
***/

 ==     /\
*\\
*/

 ==     /*z*/

 ==     /***\
/

 ==     /***\*\
/

[toc] | [prev] | [next] | [standalone]


#157228

FromAnton Shepelev <anton.txt@gmail.com>
Date2020-12-12 23:45 +0300
Message-ID<20201212234553.96c9cb63fd89d74109eddcb2@gmail.com>
In reply to#157172
I wrote:

> And I will come up with some great test cases in the
> process!

Well, maybe not so great, after all, but here they are. Each
test is between the `---' markers, so that the first one
denotes empty input and the second an empty line:

---
---

---
/
---
\
---
no newline at the end:
\
\
---
a newline at the end:
\
\

---
\
\
/\
\
\
---
\
\
/\
\
\
/\
a
---
\
\
/\
\
\
a
---
a/\
\
\
\
b
---
a/\
\
\
\
/b
---

[toc] | [prev] | [next] | [standalone]


#157244

FromTim Rentsch <tr.17687@z991.linuxsc.com>
Date2020-12-12 19:24 -0800
Message-ID<86lfe21j8t.fsf@linuxsc.com>
In reply to#157228
Anton Shepelev <anton.txt@gmail.com> writes:

> I wrote:
>
>> And I will come up with some great test cases in the
>> process!
>
> Well, maybe not so great, after all, but here they are.  Each
> test is between the `---' markers, so that the first one
> denotes empty input and the second an empty line:
>
> ---
> ---
>
> ---
> /
> ---
> \
> ---
> no newline at the end:
> \
> \
> ---
> a newline at the end:
> \
> \
>
> ---
> \
> \
> /\
> \
> \
> ---
> \
> \
> /\
> \
> \
> /\
> a
> ---
> \
> \
> /\
> \
> \
> a
> ---
> a/\
> \
> \
> \
> b
> ---
> a/\
> \
> \
> \
> /b
> ---

Thank you for these.

[toc] | [prev] | [next] | [standalone]


#157232

FromAnton Shepelev <anton.txt@gmail.com>
Date2020-12-13 00:17 +0300
Message-ID<20201213001736.831b07516475bf6914ff195f@gmail.com>
In reply to#157158
Tim Rentsch:

> It was taken from this page
>
>    https://clc-wiki.net/wiki/K%26R2_solutions:Chapter_1:Exercise_23
>
> and you may want to try looking there for other ideas.

The program on that page annotead as:

   This program breaks most of the above submissions:

does not compile even in the original form!

-- 
()  ascii ribbon campaign -- against html e-mail
/\  http://preview.tinyurl.com/qcy6mjc [archived]

[toc] | [prev] | [next] | [standalone]


Page 12 of 20 — ← Prev page 1 … 10 11 [12] 13 14 … 20  Next page →

Back to top | Article view | comp.lang.c


csiph-web