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


Groups > comp.os.linux.advocacy > #364029

Re: C is Number One

From "Octavian W. Lagrange" <olagrang@perch.invalid>
Newsgroups comp.os.linux.advocacy
Subject Re: C is Number One
Date 2016-07-29 00:44 +0000
Organization O.W.L.
Message-ID <fhjgmbcv.dkoi83@perch.invalid> (permalink)
References <nnbgp402f57@news7.newsguy.com> <vridnUQzUI8gzgTKnZ2dnUU7-evNnZ2d@giganews.com> <0usjpbtm70v592jdc1ngqcvevcrghnuq09@4ax.com> <nnd677017a8@news4.newsguy.com>

Show all headers | View raw


Adlbifhr Mjduhgfks <am@random.us> wrote:
> On Thu, 28 Jul 2016 07:08:28 -0500, chrisv wrote:
> 
>> 
>> Polls are only useful when they agree with you.  
>> 
> 
> All those who dislike and/or criticize the C language
> do so for one and only one reason: they are TOO FUCKING
> STUPID to even adequately understand it let alone properly
> utilize it.
> 
> The intricacies of C cause many incompetent programmers
> to take flight to a simpler programming language.
> 
> To prove my point, consider the following example.
> 
> We have a C structure:
> 
> struct imageType {
>         imageOpsType *ops;
>         coordType width;
>         coordType height;
>         int32_t depth;                  /* 1..32                        */
>         int32_t linebytes;              /* bytes per line               */
>         int32_t allocated;              /* bytes allocated              */
>         int64_t fill;                   /* color to fill with           */
>         int8_t sign;
>         imageType *primary;             /* for secondary, assoc primary */
>         coordType primaryX;             /* for secondary, offset in primary */
>         coordType primaryY;             /* for secondary, offset in primary */
>         int8_t *data;
>         uint32_t flags;                 /* image access mode(s)         */
>         int32_t verbose;
>         int32_t page;                   /* number of the current page   */
>         double resX;                    /* pixels per unit in X         */
>         double resY;                    /* pixels per unit in Y         */
>         int32_t resUnit;                /* 0=nores 1=unk 2=inch 3=cm    */
>         char modes[MAX_MODES];          /* modes used with open         */
>         char name[MAX_NAME];
>         int64_t clientData[CLIENT_SIZE]; };
> 
> 
> What does the following statement accomplish, given that
> "image" and "src" are both pointers to imageType?
> 
> (*(imageType**)&(image)->clientData[0])=(src)
> 

Without a typedef it doesn't do anything.

Back to comp.os.linux.advocacy | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

C is Number One Adlbifhr Mjduhgfks <am@random.us> - 2016-07-27 23:40 +0000
  Re: C is Number One Marek Novotny <marek.novotny@marspolar.com> - 2016-07-27 17:37 -0700
    Re: C is Number One chrisv <chrisv@nospam.invalid> - 2016-07-28 07:08 -0500
      Re: C is Number One Marek Novotny <marek.novotny@marspolar.com> - 2016-07-28 07:07 -0700
        Re: C is Number One chrisv <chrisv@nospam.invalid> - 2016-07-28 09:18 -0500
          Re: C is Number One Marek Novotny <marek.novotny@marspolar.com> - 2016-07-28 07:31 -0700
            Re: C is Number One Adlbifhr Mjduhgfks <am@random.us> - 2016-07-28 15:08 +0000
              Re: C is Number One DFS <nospam@dfs.com> - 2016-07-28 11:47 -0400
                Re: C is Number One flatfish+++ <flatfish4real@gmail.com> - 2016-07-28 12:48 -0400
                Re: C is Number One Takuya Saitoh <taka0038@gmail.com> - 2016-07-28 18:19 -0700
                Re: C is Number One Adlbifhr Mjduhgfks <am@random.us> - 2016-07-29 02:19 +0000
        Re: C is Number One Melzzzzz <mel@zzzzz.com> - 2016-07-28 16:59 +0200
      Re: C is Number One Adlbifhr Mjduhgfks <am@random.us> - 2016-07-28 14:52 +0000
        Re: C is Number One Melzzzzz <mel@zzzzz.com> - 2016-07-28 17:06 +0200
        Re: C is Number One DFS <nospam@dfs.com> - 2016-07-28 11:38 -0400
        Re: C is Number One "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-07-29 00:44 +0000
          Re: C is Number One Adlbifhr Mjduhgfks <am@random.us> - 2016-07-29 02:10 +0000
            Re: C is Number One "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-07-29 15:01 +0000
          Re: C is Number One GreyCloud <mist@cumulus.com> - 2016-07-28 20:20 -0600
            C is Number One John Gohde <john.h.gohde@gmail.com> - 2016-07-28 21:43 -0700
            Re: C is Number One Adlbifhr Mjduhgfks <am@random.us> - 2016-07-29 08:58 +0000
              Re: C is Number One DFS <nospam@dfs.com> - 2016-07-29 10:12 -0400
                Re: C is Number One fr314159@gmail.com - 2016-07-29 07:48 -0700
                Re: C is Number One "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-07-29 15:07 +0000
                Re: C is Number One fr314159@gmail.com - 2016-07-29 08:16 -0700
                Re: C is Number One Old Friend <old.friend@cheerful.com> - 2016-07-29 11:22 -0400
                Re: C is Number One GreyCloud <mist@cumulus.com> - 2016-07-29 11:35 -0600
                Re: C is Number One "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-07-29 15:31 +0000
                Re: C is Number One Adlbifhr Mjduhgfks <am@random.us> - 2016-07-29 22:56 +0000
                Re: C is Number One "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-07-30 00:39 +0000
                Re: C is Number One GreyCloud <mist@cumulus.com> - 2016-07-29 11:35 -0600
                Re: C is Number One GreyCloud <mist@cumulus.com> - 2016-07-29 11:34 -0600
                Re: C is Number One DFS <nospam@dfs.com> - 2016-07-29 23:25 -0400
                Re: C is Number One DFS <nospam@dfs.com> - 2016-07-29 23:26 -0400
                Re: C is Number One DFS <nospam@dfs.com> - 2016-07-30 14:04 -0400
                Re: C is Number One fr314159@gmail.com - 2016-07-29 10:51 -0700
                Re: C is Number One GreyCloud <mist@cumulus.com> - 2016-07-29 14:43 -0600
              Re: C is Number One "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-07-29 15:05 +0000
                Re: C is Number One GreyCloud <mist@cumulus.com> - 2016-07-29 11:36 -0600
              Re: C is Number One GreyCloud <mist@cumulus.com> - 2016-07-29 11:33 -0600
        Re: C is Number One DFS <nospam@dfs.com> - 2016-07-30 15:29 -0400
  Re: C is Number One Takuya Saitoh <taka0038@gmail.com> - 2016-07-27 18:03 -0700
    Re: C is Number One Adlbifhr Mjduhgfks <am@random.us> - 2016-07-28 17:33 +0000
      Re: C is Number One Takuya Saitoh <taka0038@gmail.com> - 2016-07-28 18:15 -0700
        Re: C is Number One GreyCloud <mist@cumulus.com> - 2016-07-28 20:20 -0600
  Re: C is Number One Ron House <rhouse@smartchat.net.au> - 2016-07-28 12:40 +1000
  Re: C is Number One DFS <nospam@dfs.com> - 2016-07-28 09:46 -0400

csiph-web