Skip to content

Instantly share code, notes, and snippets.

@shichao-an
Last active August 29, 2015 14:22

Revisions

  1. shichao-an revised this gist Jun 10, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion apue_gethostname.h
    Original file line number Diff line number Diff line change
    @@ -2,4 +2,4 @@

    int gethostname(char *name, int namelen);

    // Returns: 0 if OK, −1 on error
    /* Returns: 0 if OK, −1 on error */
  2. shichao-an created this gist Jun 6, 2015.
    5 changes: 5 additions & 0 deletions apue_gethostname.h
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    #include <unistd.h>

    int gethostname(char *name, int namelen);

    // Returns: 0 if OK, −1 on error