]> andersk Git - splint.git/blame - test/dkf5kRange.c
noexpand always false.
[splint.git] / test / dkf5kRange.c
CommitLineData
35b27def 1/*dkf5k*/
2#include <stdlib.h>
3#include <stdio.h>
4
5int main()
6{
7 char buffer[12] = "hello world";
8 int i;
9 printf("Enter the character you want: ");
10 scanf("%i", &i);
11 if ( i >= sizeof(buffer))
12 {
13 fprintf(stderr, "Error: %i is greater than or equal to the range which is %i", i, sizeof(buffer));
14 exit(0);
15 }
16 printf("You asked for character %i which is %c", i, buffer[i]);
17 return 0;
18}
This page took 0.206734 seconds and 5 git commands to generate.