char[] ported from C to char[0] in the D core library

badlink via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Sep 9 09:49:37 PDT 2015


The struct core.sys.linux.sys.inotify.inotify_event contains the 
field "char[0] name" which corresponds to "char name[]" in C.

Why it has been translated to "char[0]" ?
For me "char*" would have been more appropriate.


More information about the Digitalmars-d-learn mailing list