Skip to content

Instantly share code, notes, and snippets.

@shichao-an
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shichao-an/2c9049288e8634b92734 to your computer and use it in GitHub Desktop.
Save shichao-an/2c9049288e8634b92734 to your computer and use it in GitHub Desktop.
#include <stdio.h>
char *fgets(char *restrict buf, int n, FILE *restrict fp);
char *gets(char *buf);
/* Both return: buf if OK, NULL on end of file or error */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment