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

#include <string.h>

int main(int argc, char** argv) {
  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;
}