Blame


1 19a8d9fe 2022-10-31 op /*
2 19a8d9fe 2022-10-31 op * Copyright (c) 2022 Omar Polo <op@omarpolo.com>
3 19a8d9fe 2022-10-31 op *
4 19a8d9fe 2022-10-31 op * Permission to use, copy, modify, and distribute this software for any
5 19a8d9fe 2022-10-31 op * purpose with or without fee is hereby granted, provided that the above
6 19a8d9fe 2022-10-31 op * copyright notice and this permission notice appear in all copies.
7 19a8d9fe 2022-10-31 op *
8 19a8d9fe 2022-10-31 op * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 19a8d9fe 2022-10-31 op * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 19a8d9fe 2022-10-31 op * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 19a8d9fe 2022-10-31 op * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 19a8d9fe 2022-10-31 op * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 19a8d9fe 2022-10-31 op * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 19a8d9fe 2022-10-31 op * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 19a8d9fe 2022-10-31 op */
16 19a8d9fe 2022-10-31 op
17 19a8d9fe 2022-10-31 op #include <string.h>
18 19a8d9fe 2022-10-31 op
19 19a8d9fe 2022-10-31 op int
20 19a8d9fe 2022-10-31 op main(void)
21 19a8d9fe 2022-10-31 op {
22 19a8d9fe 2022-10-31 op char big[33], little[2];
23 19a8d9fe 2022-10-31 op
24 19a8d9fe 2022-10-31 op memset(big, 0, sizeof(big));
25 19a8d9fe 2022-10-31 op memset(little, 0, sizeof(little));
26 19a8d9fe 2022-10-31 op return (memmem(big, sizeof(big), little, sizeof(little)) == NULL);
27 19a8d9fe 2022-10-31 op }