-#define _POSIX_C_SOURCE 199309L
+#define _POSIX_C_SOURCE 200809L
#include <stdio.h>
#include <stdlib.h>
int newline = getchar();
if (newline != EOF && newline != (int)'\n')
die("Expected newline");
+ if (scanf_ret == 0 && newline == (int)'\n')
+ return strdup("\n");
return line;
}