summaryrefslogtreecommitdiff
path: root/tests/test_strchr_dynamic_read.c
blob: b155f36295d3c4bd184a0c55acfbdb5080957540 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "common.h"

#include <string.h>

int main(int argc, char** argv) {
#if 0
  char buffer[] = {'1', '2', '3', '4', '5'};
  const char* padding = "ABCDEFGHIJKLMN";
  strchr(buffer, (int)'4');
  puts(buffer);

  CHK_FAIL_START
  strchr(buffer, (int)'A');
  CHK_FAIL_END

  puts(buffer);
  return ret;
#else
  return 0;
#endif
}