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


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

Counting lines of a file

Started byjacobnavia <jacob@jacob.remcomp.fr>
First post2018-10-02 22:37 +0200
Last post2018-12-17 15:18 +0000
Articles 11 on this page of 211 — 33 participants

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


Contents

  Counting lines of a file jacobnavia <jacob@jacob.remcomp.fr> - 2018-10-02 22:37 +0200
    Re: Counting lines of a file Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2018-10-02 16:45 -0400
      Re: Counting lines of a file Ian Collins <ian-news@hotmail.com> - 2018-10-03 09:51 +1300
        Re: Counting lines of a file jacobnavia <jacob@jacob.remcomp.fr> - 2018-10-02 22:55 +0200
          Re: Counting lines of a file Keith Thompson <kst-u@mib.org> - 2018-10-02 14:31 -0700
            Re: Counting lines of a file jacobnavia <jacob@jacob.remcomp.fr> - 2018-10-02 23:39 +0200
              Re: Counting lines of a file Keith Thompson <kst-u@mib.org> - 2018-10-02 16:39 -0700
                Re: Counting lines of a file jacobnavia <jacob@jacob.remcomp.fr> - 2018-10-03 08:49 +0200
                  Re: Counting lines of a file Keith Thompson <kst-u@mib.org> - 2018-10-03 11:46 -0700
        Re: Counting lines of a file scott@slp53.sl.home (Scott Lurndal) - 2018-10-02 21:04 +0000
          Re: Counting lines of a file dave_thompson_2@comcast.net - 2018-12-14 17:52 -0500
            Re: Counting lines of a file Jorgen Grahn <grahn+nntp@snipabacken.se> - 2018-12-15 08:14 +0000
        Re: Counting lines of a file Nick Bowler <nbowler@draconx.ca> - 2018-10-02 21:24 +0000
          Re: Counting lines of a file jacobnavia <jacob@jacob.remcomp.fr> - 2018-10-02 23:32 +0200
            Re: Counting lines of a file queequeg@trust.no1 (Queequeg) - 2018-10-03 10:44 +0000
              Re: Counting lines of a file jacobnavia <jacob@jacob.remcomp.fr> - 2018-10-03 13:17 +0200
            Re: Counting lines of a file David Brown <david.brown@hesbynett.no> - 2018-10-03 14:35 +0200
        Re: Counting lines of a file Keith Thompson <kst-u@mib.org> - 2018-10-02 14:25 -0700
      Re: Counting lines of a file jacobnavia <jacob@jacob.remcomp.fr> - 2018-10-02 22:54 +0200
      Re: Counting lines of a file jacobnavia <jacob@jacob.remcomp.fr> - 2018-10-02 23:43 +0200
        Re: Counting lines of a file Andreas Perstinger <andipersti@gmail.com> - 2018-10-05 11:35 +0000
    Re: Counting lines of a file Nick Bowler <nbowler@draconx.ca> - 2018-10-02 20:56 +0000
      Re: Counting lines of a file jacobnavia <jacob@jacob.remcomp.fr> - 2018-10-02 23:00 +0200
        Re: Counting lines of a file Nick Bowler <nbowler@draconx.ca> - 2018-10-02 21:13 +0000
          Re: Counting lines of a file jacobnavia <jacob@jacob.remcomp.fr> - 2018-10-02 23:28 +0200
            Re: Counting lines of a file queequeg@trust.no1 (Queequeg) - 2018-10-03 10:48 +0000
              Re: Counting lines of a file Bart <bc@freeuk.com> - 2018-10-03 12:07 +0100
                Re: Counting lines of a file David Brown <david.brown@hesbynett.no> - 2018-10-03 14:49 +0200
                  Re: Counting lines of a file Bart <bc@freeuk.com> - 2018-10-03 14:25 +0100
                    Re: Counting lines of a file David Brown <david.brown@hesbynett.no> - 2018-10-03 16:05 +0200
                      Re: Counting lines of a file scott@slp53.sl.home (Scott Lurndal) - 2018-10-03 14:17 +0000
                      Re: Counting lines of a file Bart <bc@freeuk.com> - 2018-10-03 16:53 +0100
                        Re: Counting lines of a file scott@slp53.sl.home (Scott Lurndal) - 2018-10-03 16:07 +0000
                        Re: Counting lines of a file David Brown <david.brown@hesbynett.no> - 2018-10-04 15:12 +0200
                    Re: Counting lines of a file Keith Thompson <kst-u@mib.org> - 2018-10-03 11:23 -0700
                      Re: Counting lines of a file jacobnavia <jacob@jacob.remcomp.fr> - 2018-10-03 20:42 +0200
                        Re: Counting lines of a file Keith Thompson <kst-u@mib.org> - 2018-10-03 12:03 -0700
                          Re: Counting lines of a file jacobnavia <jacob@jacob.remcomp.fr> - 2018-10-03 21:45 +0200
                            Re: Counting lines of a file Ian Collins <ian-news@hotmail.com> - 2018-10-04 08:52 +1300
                            Re: Counting lines of a file Keith Thompson <kst-u@mib.org> - 2018-10-03 13:26 -0700
                          Re: Counting lines of a file David Brown <david.brown@hesbynett.no> - 2018-10-04 15:37 +0200
                            Re: Counting lines of a file Bart <bc@freeuk.com> - 2018-10-04 15:06 +0100
                              Re: Counting lines of a file David Brown <david.brown@hesbynett.no> - 2018-10-04 21:48 +0200
                      Re: Counting lines of a file David Brown <david.brown@hesbynett.no> - 2018-10-04 15:28 +0200
                        Re: Counting lines of a file gazelle@shell.xmission.com (Kenny McCormack) - 2018-10-04 14:16 +0000
                        Re: Counting lines of a file Keith Thompson <kst-u@mib.org> - 2018-10-04 11:09 -0700
                          Re: Counting lines of a file David Brown <david.brown@hesbynett.no> - 2018-10-04 22:00 +0200
                            Re: Counting lines of a file Bart <bc@freeuk.com> - 2018-10-04 21:18 +0100
                              Re: Counting lines of a file scott@slp53.sl.home (Scott Lurndal) - 2018-10-04 20:28 +0000
                                Re: Counting lines of a file Bart <bc@freeuk.com> - 2018-10-04 21:59 +0100
                                  Re: Counting lines of a file scott@slp53.sl.home (Scott Lurndal) - 2018-10-04 21:10 +0000
                              Re: Counting lines of a file Keith Thompson <kst-u@mib.org> - 2018-10-04 15:53 -0700
                                Re: Counting lines of a file Bart <bc@freeuk.com> - 2018-10-05 00:09 +0100
                                Re: Counting lines of a file Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-10-05 02:06 +0100
                            Re: Counting lines of a file jacobnavia <jacob@jacob.remcomp.fr> - 2018-10-04 22:40 +0200
                              Re: Counting lines of a file scott@slp53.sl.home (Scott Lurndal) - 2018-10-04 21:13 +0000
                              Re: Counting lines of a file Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-10-04 23:09 +0100
                                Re: Counting lines of a file jacobnavia <jacob@jacob.remcomp.fr> - 2018-10-05 07:47 +0200
                                  Re: Counting lines of a file David Brown <david.brown@hesbynett.no> - 2018-10-05 09:44 +0200
                                    Re: Counting lines of a file jacobnavia <jacob@jacob.remcomp.fr> - 2018-10-05 12:41 +0200
                                      Re: Counting lines of a file David Brown <david.brown@hesbynett.no> - 2018-10-05 16:01 +0200
                                        Re: Counting lines of a file Jorgen Grahn <grahn+nntp@snipabacken.se> - 2018-10-22 13:58 +0000
                                          Re: Counting lines of a file David Brown <david.brown@hesbynett.no> - 2018-10-22 16:44 +0200
                                      Re: Counting lines of a file jadill33@gmail.com - 2018-10-08 09:10 -0700
                                  Re: Counting lines of a file Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-10-05 13:17 +0100
                  Re: Counting lines of a file already5chosen@yahoo.com - 2018-10-03 11:34 -0700
              Re: Counting lines of a file jacobnavia <jacob@jacob.remcomp.fr> - 2018-10-03 13:14 +0200
                Re: Counting lines of a file Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-10-04 00:59 +0100
                  Re: Counting lines of a file jacobnavia <jacob@jacob.remcomp.fr> - 2018-10-04 08:57 +0200
                    Re: Counting lines of a file Ian Collins <ian-news@hotmail.com> - 2018-10-04 20:05 +1300
                    Re: Counting lines of a file Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-10-04 10:58 +0100
                      Re: Counting lines of a file Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2018-10-04 04:06 -0700
                        Re: Counting lines of a file Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-10-04 15:35 +0100
                  Re: Counting lines of a file Bart <bc@freeuk.com> - 2018-10-04 11:48 +0100
                    Re: Counting lines of a file Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-10-04 15:30 +0100
                Re: Counting lines of a file queequeg@trust.no1 (Queequeg) - 2018-10-04 21:35 +0000
                  Re: Counting lines of a file jacobnavia <jacob@jacob.remcomp.fr> - 2018-10-05 07:35 +0200
            Re: Counting lines of a file Ike Naar <ike@sdf.lonestar.org> - 2018-10-06 23:56 +0000
              Re: Counting lines of a file jacobnavia <jacob@jacob.remcomp.fr> - 2018-10-07 09:13 +0200
                Re: Counting lines of a file Ike Naar <ike@iceland.freeshell.org> - 2018-10-11 22:14 +0000
                  Re: Counting lines of a file Ralf Damaschke <rwspam@gmx.de> - 2018-10-11 23:14 +0000
                Re: Counting lines of a file antispam@math.uni.wroc.pl - 2018-12-17 20:17 +0000
    Re: Counting lines of a file Keith Thompson <kst-u@mib.org> - 2018-10-02 13:59 -0700
      Re: Counting lines of a file Bart <bc@freeuk.com> - 2018-10-02 23:07 +0100
        Re: Counting lines of a file Bart <bc@freeuk.com> - 2018-10-03 00:08 +0100
        Re: Counting lines of a file Keith Thompson <kst-u@mib.org> - 2018-10-02 16:51 -0700
    Re: Counting lines of a file "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2018-10-02 17:47 -0400
      Re: Counting lines of a file Anton Shepelev <anton.txt@g{oogle}mail.com> - 2018-10-03 11:57 +0300
        Re: Counting lines of a file James Kuyper <jameskuyper@alumni.caltech.edu> - 2018-10-03 06:30 -0400
          Re: Counting lines of a file Anton Shepelev <anton.txt@g{oogle}mail.com> - 2018-10-03 15:37 +0300
        Re: Counting lines of a file "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2018-10-03 05:20 -0700
          Re: Counting lines of a file "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2018-10-03 05:33 -0700
            Re: Counting lines of a file "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2018-10-03 05:55 -0700
            Re: Counting lines of a file Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-10-03 22:33 +0100
              Re: Counting lines of a file "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2018-10-03 17:43 -0400
                Re: Counting lines of a file Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-10-04 02:49 +0100
                  Re: Counting lines of a file "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2018-10-03 22:06 -0400
                    Re: Counting lines of a file gazelle@shell.xmission.com (Kenny McCormack) - 2018-10-04 05:20 +0000
                  Re: Counting lines of a file already5chosen@yahoo.com - 2018-10-04 02:45 -0700
                    Re: Counting lines of a file Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-10-04 14:42 +0100
                  Re: Counting lines of a file Bart <bc@freeuk.com> - 2018-10-04 11:27 +0100
                    Re: Counting lines of a file already5chosen@yahoo.com - 2018-10-04 03:40 -0700
                    Re: Counting lines of a file Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-10-04 15:17 +0100
                      Re: Counting lines of a file Bart <bc@freeuk.com> - 2018-10-04 18:13 +0100
                        Re: Counting lines of a file scott@slp53.sl.home (Scott Lurndal) - 2018-10-04 17:47 +0000
                          Re: Counting lines of a file Bart <bc@freeuk.com> - 2018-10-04 20:49 +0100
                          Re: Counting lines of a file nobody@example.org (Scott) - 2018-10-05 16:52 +0000
                        Re: Counting lines of a file Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-10-05 01:49 +0100
                          Re: Counting lines of a file Bart <bc@freeuk.com> - 2018-10-05 12:08 +0100
                            Re: Counting lines of a file Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-10-06 03:24 +0100
                              Re: Counting lines of a file Spiros Bousbouras <spibou@gmail.com> - 2018-10-06 03:47 +0000
                                Re: Counting lines of a file Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-10-06 14:41 +0100
                                  Re: Counting lines of a file Spiros Bousbouras <spibou@gmail.com> - 2018-10-06 15:05 +0000
                                    Re: Counting lines of a file Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-10-06 20:08 +0100
                              Re: Counting lines of a file Bart <bc@freeuk.com> - 2018-10-06 13:02 +0100
                                Re: Counting lines of a file Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-10-06 15:51 +0100
                                  Re: Counting lines of a file Bart <bc@freeuk.com> - 2018-10-06 17:15 +0100
                                    Re: Counting lines of a file Keith Thompson <kst-u@mib.org> - 2018-10-06 13:22 -0700
                                      Re: Counting lines of a file Bart <bc@freeuk.com> - 2018-10-06 22:27 +0100
                                        Re: Counting lines of a file Ian Collins <ian-news@hotmail.com> - 2018-10-07 11:55 +1300
                                          Re: Counting lines of a file Bart <bc@freeuk.com> - 2018-10-07 00:02 +0100
                                            Re: Counting lines of a file Ian Collins <ian-news@hotmail.com> - 2018-10-07 12:10 +1300
                                              Re: Counting lines of a file Bart <bc@freeuk.com> - 2018-10-07 01:33 +0100
                                        Re: Counting lines of a file mark.bluemel@gmail.com - 2018-10-08 01:33 -0700
                                          Re: Counting lines of a file Bart <bc@freeuk.com> - 2018-10-08 12:20 +0100
                                    Re: Counting lines of a file Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-10-06 21:51 +0100
                                  Re: Counting lines of a file already5chosen@yahoo.com - 2018-10-06 12:52 -0700
                                    Re: Counting lines of a file already5chosen@yahoo.com - 2018-10-06 13:01 -0700
                                      Re: Counting lines of a file Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-10-06 22:01 +0100
                                Re: Counting lines of a file Keith Thompson <kst-u@mib.org> - 2018-10-06 13:17 -0700
                              Re: Counting lines of a file antispam@math.uni.wroc.pl - 2018-12-17 20:50 +0000
                          Re: Counting lines of a file Anton Shepelev <anton.txt@gmail.com> - 2018-10-05 23:09 +0300
                            Re: Counting lines of a file Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2018-10-06 04:02 -0700
                              Re: Counting lines of a file Anton Shepelev <anton.txt@gmail.com> - 2018-10-07 00:29 +0300
                Re: Counting lines of a file scott@slp53.sl.home (Scott Lurndal) - 2018-10-04 13:22 +0000
                  Re: Counting lines of a file "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2018-10-04 08:00 -0700
                    Re: Counting lines of a file scott@slp53.sl.home (Scott Lurndal) - 2018-10-04 15:30 +0000
                      Re: Counting lines of a file "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2018-10-04 08:34 -0700
                    Re: Counting lines of a file Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2018-10-04 09:27 -0700
                      Re: Counting lines of a file "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2018-10-04 11:04 -0700
              Re: Counting lines of a file Bart <bc@freeuk.com> - 2018-10-03 22:50 +0100
                Re: Counting lines of a file Ian Collins <ian-news@hotmail.com> - 2018-10-04 11:30 +1300
                Re: Counting lines of a file Keith Thompson <kst-u@mib.org> - 2018-10-03 15:41 -0700
                  Re: Counting lines of a file Bart <bc@freeuk.com> - 2018-10-04 00:46 +0100
                    Re: Counting lines of a file Ian Collins <ian-news@hotmail.com> - 2018-10-04 13:01 +1300
                      Re: Counting lines of a file Bart <bc@freeuk.com> - 2018-10-04 01:22 +0100
                        Re: Counting lines of a file Ian Collins <ian-news@hotmail.com> - 2018-10-04 13:39 +1300
                    Re: Counting lines of a file Keith Thompson <kst-u@mib.org> - 2018-10-03 18:23 -0700
          Re: Counting lines of a file Bart <bc@freeuk.com> - 2018-10-03 13:33 +0100
            Re: Counting lines of a file Anton Shepelev <anton.txt@g{oogle}mail.com> - 2018-10-03 15:40 +0300
            Re: Counting lines of a file "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2018-10-03 05:57 -0700
              Re: Counting lines of a file Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-10-03 22:19 +0100
    Re: Counting lines of a file Ian Collins <ian-news@hotmail.com> - 2018-10-03 11:25 +1300
      Re: Counting lines of a file "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2018-10-02 18:56 -0400
        Re: Counting lines of a file Anton Shepelev <anton.txt@g{oogle}mail.com> - 2018-10-03 12:11 +0300
          Re: Counting lines of a file Ian Collins <ian-news@hotmail.com> - 2018-10-03 23:06 +1300
            Re: Counting lines of a file Anton Shepelev <ant0n.txt@gmai1.c0m> - 2018-10-03 14:58 +0300
              Re: Counting lines of a file Ian Collins <ian-news@hotmail.com> - 2018-10-04 08:08 +1300
          Re: Counting lines of a file "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2018-10-03 05:06 -0700
            Re: Counting lines of a file Anton Shepelev <anton.txt@g{oogle}mail.com> - 2018-10-03 15:13 +0300
              Re: Counting lines of a file "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2018-10-03 05:26 -0700
    Re: Counting lines of a file Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-10-03 02:59 +0100
      Re: Counting lines of a file jacobnavia <jacob@jacob.remcomp.fr> - 2018-10-03 08:57 +0200
      Re: Counting lines of a file jacobnavia <jacob@jacob.remcomp.fr> - 2018-10-03 08:59 +0200
        Re: Counting lines of a file Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-10-03 21:54 +0100
          Re: Counting lines of a file jacobnavia <jacob@jacob.remcomp.fr> - 2018-10-03 23:26 +0200
            Re: Counting lines of a file Bart <bc@freeuk.com> - 2018-10-03 22:41 +0100
            Re: Counting lines of a file Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-10-04 02:23 +0100
          Re: Counting lines of a file Keith Thompson <kst-u@mib.org> - 2018-10-03 14:59 -0700
            Re: Counting lines of a file Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-10-04 03:04 +0100
      Re: Counting lines of a file jacobnavia <jacob@jacob.remcomp.fr> - 2018-10-03 09:01 +0200
        Re: Counting lines of a file Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-10-03 22:01 +0100
    Re: Counting lines of a file jacobnavia <jacob@jacob.remcomp.fr> - 2018-10-03 21:44 +0200
      Re: Counting lines of a file "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2018-10-03 15:48 -0400
    Re: Counting lines of a file Anton Shepelev <anton.txt@gmail.com> - 2018-10-03 23:15 +0300
      Re: Counting lines of a file Keith Thompson <kst-u@mib.org> - 2018-10-03 13:35 -0700
        Re: Counting lines of a file Anton Shepelev <anton.txt@gmail.com> - 2018-10-04 00:14 +0300
          Re: Counting lines of a file Bart <bc@freeuk.com> - 2018-10-03 23:15 +0100
            Re: Counting lines of a file Anton Shepelev <anton.txt@gmail.com> - 2018-10-04 23:28 +0300
          Re: Counting lines of a file James Kuyper <jameskuyper@alumni.caltech.edu> - 2018-10-03 19:39 -0400
            Re: Counting lines of a file Nick Bowler <nbowler@draconx.ca> - 2018-10-04 15:31 +0000
      Re: Counting lines of a file Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-10-04 01:05 +0100
    Re: Counting lines of a file jacobnavia <jacob@jacob.remcomp.fr> - 2018-10-04 14:04 +0200
      Re: Counting lines of a file Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-10-04 15:48 +0100
    Re: Counting lines of a file jacobnavia <jacob@jacob.remcomp.fr> - 2018-10-05 18:29 +0200
    Re: Counting lines of a file Joey Pabalinas <joeypabalinas@gmail.com> - 2018-12-16 07:50 -1000
      Re: Counting lines of a file Joey Pabalinas <joeypabalinas@gmail.com> - 2018-12-16 07:54 -1000
      Re: Counting lines of a file rbowman <bowman@montana.com> - 2018-12-16 12:51 -0700
        Re: Counting lines of a file Jorgen Grahn <grahn+nntp@snipabacken.se> - 2018-12-16 20:51 +0000
          Re: Counting lines of a file rbowman <bowman@montana.com> - 2018-12-16 14:40 -0700
            Re: Counting lines of a file Jorgen Grahn <grahn+nntp@snipabacken.se> - 2018-12-16 21:50 +0000
              Re: Counting lines of a file Keith Thompson <kst-u@mib.org> - 2018-12-16 15:38 -0800
              Re: Counting lines of a file rbowman <bowman@montana.com> - 2018-12-16 20:29 -0700
                Re: Counting lines of a file Jorgen Grahn <grahn+nntp@snipabacken.se> - 2018-12-18 21:03 +0000
        Re: Counting lines of a file Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-12-16 21:17 +0000
        Re: Counting lines of a file Joey Pabalinas <joeypabalinas@gmail.com> - 2018-12-16 17:13 -1000
          Re: Counting lines of a file rbowman <bowman@montana.com> - 2018-12-16 23:11 -0700
            Re: Counting lines of a file Joey Pabalinas <joeypabalinas@gmail.com> - 2018-12-16 22:05 -1000
            Re: Counting lines of a file Keith Thompson <kst-u@mib.org> - 2018-12-17 11:52 -0800
              Re: Counting lines of a file luser droog <luser.droog@gmail.com> - 2018-12-17 16:01 -0800
                Re: Counting lines of a file Keith Thompson <kst-u@mib.org> - 2018-12-17 17:35 -0800
                  Re: Counting lines of a file fir <profesor.fir@gmail.com> - 2018-12-19 15:54 -0800
                Re: Counting lines of a file rbowman <bowman@montana.com> - 2018-12-17 20:01 -0700
                Re: Counting lines of a file Ike Naar <ike@iceland.freeshell.org> - 2018-12-18 07:44 +0000
                  Re: Counting lines of a file nobody@example.org (Scott) - 2018-12-18 09:29 +0000
                    Re: Counting lines of a file David Brown <david.brown@hesbynett.no> - 2018-12-18 13:18 +0100
                Re: Counting lines of a file James Kuyper <jameskuyper@alumni.caltech.edu> - 2018-12-18 06:10 -0800
                  Re: Counting lines of a file rbowman <bowman@montana.com> - 2018-12-18 08:12 -0700
              Re: Counting lines of a file "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2018-12-19 07:47 -0800
      Re: Counting lines of a file Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-12-16 20:41 +0000
      Re: Counting lines of a file scott@slp53.sl.home (Scott Lurndal) - 2018-12-17 15:18 +0000

Page 11 of 11 — ← Prev page 1 … 9 10 [11]


#138723

FromKeith Thompson <kst-u@mib.org>
Date2018-12-17 17:35 -0800
Message-ID<lnsgyvehvu.fsf@kst-u.example.com>
In reply to#138722
luser droog <luser.droog@gmail.com> writes:
> On Monday, December 17, 2018 at 1:52:33 PM UTC-6, Keith Thompson wrote:
>> rbowman <bowman@montana.com> writes:
>> [...]
>> > I also forget who said if you use every ounce of your creativity writing 
>> > the code you're going to be up the creek when you try to debug it.
>> 
>> That was Brian Kernighan (the K of K&R):
>> 
>> "Everyone knows that debugging is twice as hard as writing a program in
>> the first place. So if you're as clever as you can be when you write it,
>> how will you ever debug it?"
>
> I have been pondering this quote for some time now, and I think I have
> an answer to it: "Get smarter!" Easier said than done, of course. But
> cleverness is not (necessarily) a vice.

I think this misses the point Kernighan was making.  Given the
assumptions in his statement, being smarter means you can write and
debug cleverer code -- but there's going to be even more code that
you're smart enough to write, but not smart enough to debug.

-- 
Keith Thompson (The_Other_Keith) kst@mib.org  <http://www.ghoti.net/~kst>
Will write code for food.
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"

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


#138758

Fromfir <profesor.fir@gmail.com>
Date2018-12-19 15:54 -0800
Message-ID<fb88e3a3-b5c9-40eb-8131-7a0b33f476ee@googlegroups.com>
In reply to#138723
W dniu wtorek, 18 grudnia 2018 02:35:57 UTC+1 użytkownik Keith Thompson napisał:
> luser droog <luser.droog@gmail.com> writes:
> > On Monday, December 17, 2018 at 1:52:33 PM UTC-6, Keith Thompson wrote:
> >> rbowman <bowman@montana.com> writes:
> >> [...]
> >> > I also forget who said if you use every ounce of your creativity writing 
> >> > the code you're going to be up the creek when you try to debug it.
> >> 
> >> That was Brian Kernighan (the K of K&R):
> >> 
> >> "Everyone knows that debugging is twice as hard as writing a program in
> >> the first place. So if you're as clever as you can be when you write it,
> >> how will you ever debug it?"
> >
> > I have been pondering this quote for some time now, and I think I have
> > an answer to it: "Get smarter!" Easier said than done, of course. But
> > cleverness is not (necessarily) a vice.
> 
> I think this misses the point Kernighan was making.  Given the
> assumptions in his statement, being smarter means you can write and
> debug cleverer code -- but there's going to be even more code that
> you're smart enough to write, but not smart enough to debug.
> 

i think programmers now have different attitude to programming in c as they got in 70-ties or 80-ties ..im like slightly knowing how that attitude was in 90-ties
ant 00-s..this attitude evolve imo and
in some way probably todays goods programmers are able to code more than 
good programmers in 70-ties

not saying im a good programmer but for example for me such things as mentioned are:
1) debugging - easy
2) architecture - easy
3) optimistation - easy


what is hard

1) finding a motivation to code hard things (if youre not newb and not 25-yo) 

2) making yourself endure to code things for long hours in long months (so much damn to write) [also includes producing assets etc]

3) overcoming some 'invisible' walls/obstacles... there are kind of programs that are strightforward to make (like say text editor, you know what to
write you write it... i exclude such problems you need sometimes read a lot to learn how some api or something works which i would call as a 'medicore' as in easy-hard plane) such aplications are 'easy' - but some other are not of that strightforward kind, are more like 'write a screenplay that is good' and now you 
must invent what is 'good' and now it may appear you got no strightforward answer, youre blocked, most often youre like dead blocked, i call it here as a wall or obstacle - this is hard
(sometimes it may be not purely 'creative' obstacle it may be like mmore partially 'defined' but also not fully and it may needed possible a mix of  big amount of testing work and big amount of reaserch, and now youre blocked to
(those problems are so scary i dont even like to like think on it ;c like now;
maybe it is some kind of my personal problem it scares me so much (it may somewhat be as people differ a lot) and maybe there is possible that there is just some calm stable way of overcoming that troubles but personally i just feel brainles, helpless and depressed encountering that type of a problem (yawn)

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


#138728

Fromrbowman <bowman@montana.com>
Date2018-12-17 20:01 -0700
Message-ID<g7r66bFggr0U1@mid.individual.net>
In reply to#138722
On 12/17/2018 05:01 PM, luser droog wrote:
> On Monday, December 17, 2018 at 1:52:33 PM UTC-6, Keith Thompson wrote:
>> rbowman <bowman@montana.com> writes:
>> [...]
>>> I also forget who said if you use every ounce of your creativity writing
>>> the code you're going to be up the creek when you try to debug it.
>>
>> That was Brian Kernighan (the K of K&R):
>>
>> "Everyone knows that debugging is twice as hard as writing a program in
>> the first place. So if you're as clever as you can be when you write it,
>> how will you ever debug it?"
>>
>
> I have been pondering this quote for some time now, and I think I have
> an answer to it: "Get smarter!" Easier said than done, of course. But
> cleverness is not (necessarily) a vice.
>

The older I get, the dumber I get...  Little things like using parens to 
group things rather than depending on operator precedence or making 
tests explicit like  if (strcmp(something, "foo") == 0). The next person 
that has to work on the code might not be as clever as I. I've spent too 
much time cleaning up after people who weren't quite as smart as they 
thought they were and thought defensive programming was a waste of time 
because nothing ever goes wrong.

There's elegance, and then there's twisted.

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


#138729

FromIke Naar <ike@iceland.freeshell.org>
Date2018-12-18 07:44 +0000
Message-ID<slrn3lrkq1h9a5.9ms.ike@iceland.freeshell.org>
In reply to#138722
On 2018-12-18, luser droog <luser.droog@gmail.com> wrote:
> On Monday, December 17, 2018 at 1:52:33 PM UTC-6, Keith Thompson wrote:
>> rbowman <bowman@montana.com> writes:
>> [...]
>> > I also forget who said if you use every ounce of your creativity writing 
>> > the code you're going to be up the creek when you try to debug it.
>> 
>> That was Brian Kernighan (the K of K&R):
>> 
>> "Everyone knows that debugging is twice as hard as writing a program in
>> the first place. So if you're as clever as you can be when you write it,
>> how will you ever debug it?"

If the programmer was really clever, the program has no bugs.

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


#138730

Fromnobody@example.org (Scott)
Date2018-12-18 09:29 +0000
Message-ID<5c18bd3d.789879781@news.xmission.com>
In reply to#138729
On Tue, 18 Dec 2018 07:44:13 -0000 (UTC), Ike Naar
<ike@iceland.freeshell.org> wrote:

>On 2018-12-18, luser droog <luser.droog@gmail.com> wrote:
>> On Monday, December 17, 2018 at 1:52:33 PM UTC-6, Keith Thompson wrote:
>>> rbowman <bowman@montana.com> writes:
>>> [...]
>>> > I also forget who said if you use every ounce of your creativity writing 
>>> > the code you're going to be up the creek when you try to debug it.
>>> 
>>> That was Brian Kernighan (the K of K&R):
>>> 
>>> "Everyone knows that debugging is twice as hard as writing a program in
>>> the first place. So if you're as clever as you can be when you write it,
>>> how will you ever debug it?"
>
>If the programmer was really clever, the program has no bugs.

Axiom: Every program has at least one bug

Axiom: Every program can be shortened by one instruction

Conclusion: Every program can be reduced to one wrong instruction

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


#138731

FromDavid Brown <david.brown@hesbynett.no>
Date2018-12-18 13:18 +0100
Message-ID<pvaoii$f9i$2@dont-email.me>
In reply to#138730
On 18/12/18 10:29, Scott wrote:
> On Tue, 18 Dec 2018 07:44:13 -0000 (UTC), Ike Naar
> <ike@iceland.freeshell.org> wrote:
> 
>> On 2018-12-18, luser droog <luser.droog@gmail.com> wrote:
>>> On Monday, December 17, 2018 at 1:52:33 PM UTC-6, Keith Thompson wrote:
>>>> rbowman <bowman@montana.com> writes:
>>>> [...]
>>>>> I also forget who said if you use every ounce of your creativity writing 
>>>>> the code you're going to be up the creek when you try to debug it.
>>>>
>>>> That was Brian Kernighan (the K of K&R):
>>>>
>>>> "Everyone knows that debugging is twice as hard as writing a program in
>>>> the first place. So if you're as clever as you can be when you write it,
>>>> how will you ever debug it?"
>>
>> If the programmer was really clever, the program has no bugs.
> 
> Axiom: Every program has at least one bug
> 
> Axiom: Every program can be shortened by one instruction
> 
> Conclusion: Every program can be reduced to one wrong instruction
> 

That's what happens when your program has undefined behaviour, and you
pass it through an optimising compiler!

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


#138732

FromJames Kuyper <jameskuyper@alumni.caltech.edu>
Date2018-12-18 06:10 -0800
Message-ID<61a061de-fe96-4892-978e-476e5687c586@googlegroups.com>
In reply to#138722
On Monday, December 17, 2018 at 7:02:09 PM UTC-5, luser droog wrote:
> On Monday, December 17, 2018 at 1:52:33 PM UTC-6, Keith Thompson wrote:
...
> > That was Brian Kernighan (the K of K&R):
> > 
> > "Everyone knows that debugging is twice as hard as writing a program in
> > the first place. So if you're as clever as you can be when you write it,
> > how will you ever debug it?"
> > 
> 
> I have been pondering this quote for some time now, and I think I have
> an answer to it: "Get smarter!" Easier said than done, of course. But
> cleverness is not (necessarily) a vice.

That only solves the problem if you can figure out how to become
substantially smarter between the time that you write your code and the
time that you debug your code. That's not a sustainable development
process.

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


#138733

Fromrbowman <bowman@montana.com>
Date2018-12-18 08:12 -0700
Message-ID<g7sh07Fp9siU3@mid.individual.net>
In reply to#138732
On 12/18/2018 07:10 AM, James Kuyper wrote:
> On Monday, December 17, 2018 at 7:02:09 PM UTC-5, luser droog wrote:
>> On Monday, December 17, 2018 at 1:52:33 PM UTC-6, Keith Thompson wrote:
> ...
>>> That was Brian Kernighan (the K of K&R):
>>>
>>> "Everyone knows that debugging is twice as hard as writing a program in
>>> the first place. So if you're as clever as you can be when you write it,
>>> how will you ever debug it?"
>>>
>>
>> I have been pondering this quote for some time now, and I think I have
>> an answer to it: "Get smarter!" Easier said than done, of course. But
>> cleverness is not (necessarily) a vice.
>
> That only solves the problem if you can figure out how to become
> substantially smarter between the time that you write your code and the
> time that you debug your code. That's not a sustainable development
> process.
>

Jolt!

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


#138740

From"Rick C. Hodgin" <rick.c.hodgin@gmail.com>
Date2018-12-19 07:47 -0800
Message-ID<36da8d08-1e61-4ab8-928c-463dc077236c@googlegroups.com>
In reply to#138715
On Monday, December 17, 2018 at 2:52:33 PM UTC-5, Keith Thompson wrote:
> ... Brian Kernighan (the K of K&R):
> 
> "Everyone knows that debugging is twice as hard as writing a program in
> the first place. So if you're as clever as you can be when you write it,
> how will you ever debug it?"

I've never heard this quote before, but have thought it many times.
I'm glad to see it stems from an authority. :-)

-- 
Rick C. Hodgin

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


#138700

FromBen Bacarisse <ben.usenet@bsb.me.uk>
Date2018-12-16 20:41 +0000
Message-ID<878t0ptdai.fsf@bsb.me.uk>
In reply to#138696
Joey Pabalinas <joeypabalinas@gmail.com> writes:

> On Tue, Oct 02, 2018 at 10:37:15PM +0200, jacobnavia wrote:
>> Unix has the "wc" utility to count the lines of a file. It is a pity that
>> under linux that program is unusable to count lines in a hierarchy of
>> several directories. It requires ZERO terminated file names, and the "find"
>> utility produces \n terminated file names, so it is unusable for that.
>> 
>> So, I decided to rewrite "wc" as "lc" (for Line Count")
>> 
>> It took me a few hours, and I wanted to post the result here, since it is
>> (maybe) a useful program, and the way I wrote it explain some opinions I
>> have about software design.
>> 
>> Here it is:
>> -----------------------------------------------cut here
>
> A fun exercise is also trying to handle "-" arguments in _any_ argument
> position:
>
> 	#include <stdio.h>
> 	#include <stdlib.h>
> 	#include <string.h>
> 	#include <unistd.h>
>
> 	int tok(size_t *cnt, FILE * f, int last)
> 	{
> 		int ret;
> 		if (!cnt || !f)
> 			return EOF;
> 		ret = getc(f);
> 		if (ret == '\n' || (ret == EOF && last != '\n'))
> 			++*cnt;
> 		return ret;
> 	}
>
> 	void walk(size_t *lines, FILE *f) {
> 		for (int last = 0, c = tok(lines, f, last); c != EOF; last = c, c = tok(lines, f, last));
> 	}

This looks like a complicated way to count newlines, even given the edge
case you want to cover.

Also I would always favour a return value over a void function that
"returns" via a pointer argument.  I know you do this because it matches
your tok() call, but I'd still prefer a plain return.

>
> 	int main(int argc, char **argv)
> 	{
> 		char *name = "stdin";
> 		FILE *f = stdin;
>
> 		/* special case no arguments */
> 		if (argc < 2) {
> 			size_t lines = 0;
> 			/* walk the file */
> 			walk(&lines, f);
> 			printf("%zu %s\n", lines, name);
> 			/* exit early */
> 			return 0;
> 		}
>
> 		/* skip "-" */
> 		if (argv[1] && strcmp(argv[1], "-")) {
> 			f = fopen(argv[1], "r");
> 		}

I don't see any poit to this if and I can't see how the comment relates
to it.

> 		/* walk each file */
> 		for (int i = 1; i < argc && f; i++) {

This is odd too.  You stop the loop after finding a file that can't be
opened, but you don't report the error.  And the behaviour of the
program is further complicated by the redundant fopen above.

> 			size_t lines = 0;
>
> 			name = argv[i] ? argv[i] : "stdin";

name gets assigned by the next statement so there's no point to having
this one.

> 			/* handle "-" arguuments */
> 			if (!argv[i] || !strcmp(name, "-")) {
> 				f = stdin;
> 				name = "stdin";
> 			/* else strip directory components */
> 			} else {
> 				name = strrchr(name, '/');
> 				name = name ?  name + 1 : argv[i];
> 				f = fopen(argv[i], "r");
> 			}
>
> 			/* calculate and print count */
> 			walk(&lines, f);
> 			printf("%zu %s\n", lines, name);

I'd report failed opens rather than report zero lines.

> 			/* cleanup */
> 			if (f != stdin)
> 				fclose(f);

This can go very wrong if f == NULL!

> 		}
>
> 		return 0;
> 	}
>
> This just counts the number of '\n' and handles the one edge case where
> the file isn't terminated by a newline.

Except you count a line even when there is no input.  That seems wrong
(though hardly important).

> As you can see, handling "-"
> arguments can be surprisingly complicated.

I think it's easier than you make out.  I'd do something like the
following (V2 would return 0 only if all files could be opened):

  #include <stdio.h>
  #include <string.h>
   
  static size_t count_lines(FILE *fp)
  {
       size_t lines = 0;
       int last = EOF, c;
       while ((c = getc(fp)) != EOF) {
            lines += c == '\n';
            last = c;
       }
       return lines + (last != '\n' && last != EOF);
  }
   
  static void report_lines(const char *fname, FILE *fp)
  {
       printf("%zu %s\n", count_lines(fp), fname);
  }
   
  int main(int argc, char **argv)
  {
       if (argc < 2)
            report_lines("stdin", stdin);
       else for (int i = 1; i < argc; i++)
                 if (strcmp(argv[i], "-") == 0)
                      report_lines("stdin", stdin);
                 else {
                      FILE *fp = fopen(argv[i], "r");
                      if (fp) {
                           report_lines(argv[i], fp);
                           fclose(fp);
                      }
                      else fprintf(stderr, "Can't open %s\n", argv[i]);
                 }
       return 0;
  }

-- 
Ben.

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


#138713

Fromscott@slp53.sl.home (Scott Lurndal)
Date2018-12-17 15:18 +0000
Message-ID<V6PRD.19654$1M.7887@fx08.iad>
In reply to#138696
Joey Pabalinas <joeypabalinas@gmail.com> writes:

>On Tue, Oct 02, 2018 at 10:37:15PM +0200, jacobnavia wrote:
>> Unix has the "wc" utility to count the lines of a file. It is a pity that
>> under linux that program is unusable to count lines in a hierarchy of
>> several directories. It requires ZERO terminated file names, and the "fin=
>d"
>> utility produces \n terminated file names, so it is unusable for that.

Really?

$ find platform -name '*.cpp' -print | xargs wc -l
   220 platform/a.cpp
   539 platform/b.cpp
   655 platform/c.cpp
   311 platform/d.cpp
  1292 platform/e.cpp
   141 platform/f.cpp
  3095 platform/g.cpp
   463 platform/h.cpp
    76 platform/i.cpp
   206 platform/j.cpp
   100 platform/k.cpp
   452 platform/l.cpp
   164 platform/m.cpp
   298 platform/n.cpp
   140 platform/o.cpp
   327 platform/p.cpp
  1583 platform/q.cpp
   625 platform/r.cpp
   159 platform/s.cpp
    65 platform/t.cpp
 10911 total

And if you are stuck with filenames containing space characters:

$ find platform -name '*.cpp' -print0 | xargs -0 wc -l

>>=20
>> So, I decided to rewrite "wc" as "lc" (for Line Count")

'wc' does more than just count lines.

[toc] | [prev] | [standalone]


Page 11 of 11 — ← Prev page 1 … 9 10 [11]

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


csiph-web