add some missing copyrights and tags
[xxxterm.git] / marco.c
blob50bb7a0ba8ad1f82ecfbc1c50c769fd9dcd5eccb
1 /* $xxxterm$ */
2 /*
3 * Copyright (c) 2011 Todd T. Fries <todd@fries.net>
5 * Permission to use, copy, modify, and distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 #include <stdlib.h>
19 #include <string.h>
21 static const char *message[] = {
22 "I fully support your right to put restrictions on how I can modify"
23 " or distribute something you created. Calling these restrictions "
24 "\"liberty,\" however, is just Orwellian doublespeak",
27 const char *
28 marco_message(int *len)
30 const char *str;
32 str = message[arc4random_uniform(sizeof(message)/sizeof(message[0]))];
33 *len = strlen(str);
35 return str;