scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

0102-decl.c (203B)


      1 #include <stdio.h>
      2 
      3 static void
      4 printhello(char *hello[static 1])
      5 {
      6         puts(*hello);
      7 }
      8 
      9 int
     10 main(void)
     11 {
     12         char *p = "Hello, world!";
     13         char *hello[] = {p};
     14         printhello(hello);
     15 }