]> andersk Git - splint.git/blame - test/chararraylit.c
Fixes for win32
[splint.git] / test / chararraylit.c
CommitLineData
755ee3f6 1/*
2** Character arrays can be initialized using string literals (without becoming observers).
3*/
4
5void f (void)
6{
7 char s0[] = "abc";
8 char s1[3] = "abc"; /* warning about no room for nullterminator */
9 char *p = "abc";
10
11 *s0 = 'b'; /* okay */
12 s1[1] = 'd'; /* okay */
13 *p = 'c'; /* error */
14}
This page took 0.090344 seconds and 5 git commands to generate.