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


Groups > comp.lang.c > #6765

Re: Query abt union

From John Gordon <gordon@panix.com>
Newsgroups comp.lang.c
Subject Re: Query abt union
Date 2011-06-23 22:27 +0000
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <iu0el2$clv$1@reader1.panix.com> (permalink)
References <iu06d5$cnu$1@speranza.aioe.org>

Show all headers | View raw


In <iu06d5$cnu$1@speranza.aioe.org> "sumit.sharma" <nospam@nospam.com> writes:

> strncpy(ux.name, "C Language", strlen("C Langage"));    /* name is set */

This seems needlessly complicated.  Why wouldn't you just do:

  strcpy(ux.name, "C Language")

-- 
John Gordon                   A is for Amy, who fell down the stairs
gordon@panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"

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


Thread

Query abt union "sumit.sharma" <nospam@nospam.com> - 2011-06-23 20:07 +0000
  Re: Query abt union Ben Pfaff <blp@cs.stanford.edu> - 2011-06-23 13:18 -0700
  Re: Query abt union Shao Miller <sha0.miller@gmail.com> - 2011-06-23 17:20 -0500
    Re: Query abt union James Waldby <not@valid.invalid> - 2011-06-24 17:34 +0000
      Re: Query abt union Shao Miller <sha0.miller@gmail.com> - 2011-06-24 14:42 -0400
        Re: Query abt union James Waldby <not@valid.invalid> - 2011-06-24 21:13 +0000
          Re: Query abt union Shao Miller <sha0.miller@gmail.com> - 2011-06-26 14:08 -0500
            Re: Query abt union James Waldby <not@valid.invalid> - 2011-06-27 05:13 +0000
  Re: Query abt union John Gordon <gordon@panix.com> - 2011-06-23 22:27 +0000
  Re: Query abt union Lew Pitcher <lpitcher@teksavvy.com> - 2011-06-23 18:47 -0400
    Re: Query abt union Shao Miller <sha0.miller@gmail.com> - 2011-06-23 17:54 -0500
      Re: Query abt union Keith Thompson <kst-u@mib.org> - 2011-06-23 17:19 -0700
        Re: Query abt union Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2011-06-23 22:12 -0600
          Re: Query abt union Keith Thompson <kst-u@mib.org> - 2011-06-23 22:32 -0700
            Re: Query abt union Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2011-06-24 08:51 -0600
              Re: Query abt union Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-06-24 16:30 +0100
          Re: Query abt union pete <pfiland@mindspring.com> - 2011-06-24 12:46 -0400
            Re: Query abt union Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2011-06-24 16:18 -0600
        Re: Query abt union pozz <pozzugno@gmail.com> - 2011-06-24 23:14 +0200
          Re: Query abt union John Gordon <gordon@panix.com> - 2011-06-24 21:37 +0000
            Re: Query abt union Shao Miller <sha0.miller@gmail.com> - 2011-06-26 14:28 -0500
          Re: Query abt union Keith Thompson <kst-u@mib.org> - 2011-06-24 14:56 -0700
            Re: Query abt union Edward Rutherford <edward.p.rutherford79@REMOVETHIS.gmail.com> - 2011-06-24 22:10 +0000
              Re: Query abt union Keith Thompson <kst-u@mib.org> - 2011-06-24 15:41 -0700
          Re: Query abt union pete <pfiland@mindspring.com> - 2011-06-25 10:33 -0400
            Re: Query abt union pete <pfiland@mindspring.com> - 2011-06-25 15:30 -0400
          Re: Query abt union Shao Miller <sha0.miller@gmail.com> - 2011-06-26 14:12 -0500
    Re: Query abt union Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2011-06-23 17:13 -0600

csiph-web