Hacker News new | ask | show | jobs
by qwertyuiop924 3579 days ago
How about SCL?:

  include header file stdio.h, searching system paths first.

  describe function main that returns a value of type 
  integer, and has argument of type integer argc, and 
  argument of type pointers to pointers to characters argv.

  begin function body

  call function printf with the single argument of type 
  string "hello world" with a newline appended.

  begin new statement.

  return the integer value 0.
1 comments

> array of pointers to pointers to characters

    Wouldn't that be char ***argv? (with three stars)
For some reason, I thought it was:

  char **argv[]
It isn't. I've been away from C too long. Fixed in GP.
An array of anything decays to a pointer though, if I'm not mistaken.
Yeah, I know. I've already fixed it.