]> andersk Git - splint.git/blame - test/nullterminatedtest/test3.c
Fixed manual csvoverwrite.
[splint.git] / test / nullterminatedtest / test3.c
CommitLineData
4e4880b7 1#include <stdio.h>
2
3//void free (char * bob);
4
5 /*@nullterminated@*/ char * strcpy ( char * ch1, /*@nullterminated@*/
6char * ch2);
7
8char * global;
9
10void test2 ()
11{
12char * y;
13char * x;
14strcpy (y, x);
15
16strcpy (y, "bob");
17x = "bob";
18strcpy (y, x);
19strcpy (y, global);
20}
21
22
23
24 /*@nullterminated@*/ char * tr ( char * e) {
25
26/*@nullterminated@*/ char * c;
27
28return (e);
29}
30
31int main ()
32{
33/*@nullterminated@*/ char * d;
34d = tr(d);
35tr(d);
36free (d);
37return 0;
38
39}
40
This page took 0.155074 seconds and 5 git commands to generate.