|
|||||||||||
|
*p!='\0' (still)
From: Jonathan M. Bresler <jmb>
Date: Sat Feb 22 1997 - 20:04:48 EST
not true. the test *p != '\0' fails. the second half of the && statement is not executed
Aspen:[14] cat /tmp/a.c
char *p = "";
if (*p != '\0') {
printf("passed\n");
} else {
printf("failed\n");
}
} Aspen:[15] gcc -o /tmp/a.out /tmp/a.c Aspen:[16] /tmp/a.out failed Aspen:[17] uname -a FreeBSD Aspen.Woc.Atinc.COM 3.0-CURRENT FreeBSD 3.0-CURRENT #0: Sat Feb 22 19:35:37 EST 1997 jmb@Aspen.Woc.Atinc.COM:/usr/src/sys/compile/ASPEN i386 jmb Received on Sat Feb 22 17:04:49 1997 This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 12:41:03 EDT |
||||||||||
|
|||||||||||