summaryrefslogtreecommitdiff
path: root/tests/test_fgets_dynamic.c
blob: 88c9e6fed0e7b8d123ae7e1953a6529d2d9d3af7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "common.h"

#define _GNU_SOURCE
#include <poll.h>

int main(int argc, char** argv) {
  char buffer[8] = {0};

  CHK_FAIL_START
  fgets(buffer, argc, NULL);
  CHK_FAIL_END

  puts(buffer);
  return ret;
}