Re: [LAD] "enhanced event port" LV2 extension proposal

From: Krzysztof Foltman <wdev@email-addr-hidden>
Date: Fri Nov 30 2007 - 02:23:50 EET

Dave Robillard wrote:
>> Because char* usually means, you know, a pointer, not a variable length
>> array :)
>>
> .... char buf[] is, you know, equivalent to char* buf. You do know C,
> yes? ;)
>
You *do* know C, yes? Well enough to judge others?

Hint: try this little proggy (gcc should compile it fine):

#include <stdio.h>
int main(int argc, char *argv[])
{
  struct X
  {
    int a;
    char buf[];
  };
  struct Y
  {
    int a;
    char *buf;
  };

  printf("%d %d\n", sizeof(struct X), sizeof(struct Y));
}

/* Krzysztof */

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev
Received on Fri Nov 30 04:15:04 2007

This archive was generated by hypermail 2.1.8 : Fri Nov 30 2007 - 04:15:04 EET