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

#include <string.h>

int main(int argc, char** argv) {
  char buffer[8] = {0};
  strncat(buffer, "1234567", 5);
  puts(buffer);

  CHK_FAIL_START
  strncat(buffer, "1234567890", 10);
  CHK_FAIL_END

  puts(buffer);
  return ret;
}