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


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

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 15:01 +0000
Organization O.W.L.
Message-ID <fghjads93a.j33ig@perch.invalid> (permalink)
References (1 earlier) <vridnUQzUI8gzgTKnZ2dnUU7-evNnZ2d@giganews.com> <0usjpbtm70v592jdc1ngqcvevcrghnuq09@4ax.com> <nnd677017a8@news4.newsguy.com> <fhjgmbcv.dkoi83@perch.invalid> <nnedum0312b@news6.newsguy.com>

Show all headers | View raw


Adlbifhr Mjduhgfks <am@random.us> wrote:
> On Fri, 29 Jul 2016 00:44:13 +0000, Octavian W. Lagrange wrote:
> 
>> 
>> Without a typedef it doesn't do anything.
>>
> 
> Translation:
> 
> I sure as fuck can't figure that out!  I'll be sittin'
> here 'till 2028 and still won't make any progress!
> 
 
(Keeping your parentheses as is):

1. take address of image->clientData[0]:
 
&(image)->clientData[0]) 

2. cast that address to pointer to pointer to imageType: 

(imageType**)&(image)->clientData[0] 

3. dereference the pointer to pointer to imageType, yielding a pointer to
imageType:

*(imageType**)&(image)->clientData[0] 

4. assign src (a pointer to imageType) to that pointer to imageType:

(*(imageType**)&(image)->clientData[0])=(src); 

The problem here, DUMBASS, is that you never typedef'ed imageType, so
the whole thing is a FAIL.

The other question is, if you don't know what kind of data is going
to be needed, why are you using 

   int64_t clientData[CLIENT_SIZE];

instead of

   void *clientData[CLIENT_SIZE];

?

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