mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
61d06d6bd1
Approved by: re (kib) MFC after: 1 week
11 lines
141 B
C
11 lines
141 B
C
#include <string.h>
|
|
|
|
int
|
|
main(void)
|
|
{
|
|
char *s;
|
|
|
|
s = strndup("123", 2);
|
|
return s[0] != '1' ? 1 : s[1] != '2' ? 2 : s[2] != '\0' ? 3 : 0;
|
|
}
|