about summary refs log tree commit diff
path: root/frida_mode/test/dynamic/testinstrlib.c
blob: 987cbf9164ed0bd003c1fcdc8cb907203af0698d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdio.h>

void testinstrlib(char *buf, int len) {
  if (len < 1) return;
  buf[len] = 0;

  // we support three input cases
  if (buf[0] == '0')
    printf("Looks like a zero to me!\n");
  else if (buf[0] == '1')
    printf("Pretty sure that is a one!\n");
  else
    printf("Neither one or zero? How quaint!\n");
}