summaryrefslogtreecommitdiff
path: root/tests/test_strrchr_dynamic_read.c
blob: 3b192c828006de5443967e4da2554610d4dfd330 (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";
  strrchr(buffer, (int)'4');
  puts(buffer);

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

  puts(buffer);
  return ret;
}