Skip to content

Instantly share code, notes, and snippets.

@mina86
Created January 16, 2010 00:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mina86/278539 to your computer and use it in GitHub Desktop.
Save mina86/278539 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <string.h>
int main(void) {
char tmp[128];
while (scanf(" %128s ", tmp) == 1) {
if (!strcmp("Date:", tmp) && fgets(tmp, sizeof tmp, stdin)) {
fputs(tmp, stdout);
return 0;
}
}
return 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment