2 * This file and its contents are supplied under the terms of the
3 * Common Development and Distribution License ("CDDL"), version 1.0.
4 * You may only use this file in accordance with the terms of version
7 * A full copy of the text of the CDDL should have accompanied this
8 * source. A copy of the CDDL is also available via the Internet at
9 * http://www.illumos.org/license/CDDL.
13 * Copyright 2013 (c) Joyent, Inc. All rights reserved.
17 * The point of this is to use print() on various functions to make sure that we
18 * can print basic structures. Note that we purposefully are making sure that
19 * there are no pointers here.
23 typedef struct final_fantasy_info {
27 } final_fantasy_info_t;
30 ff_getgameid(final_fantasy_info_t *f)
36 ff_getpartysize(final_fantasy_info_t *f)
42 ff_getsummons(final_fantasy_info_t *f)
50 final_fantasy_info_t ffiii, ffx, ffi;
54 ffi.ff_hassummons = 0;
57 ffiii.ff_partysize = 4;
58 ffiii.ff_hassummons = 1;
62 ffx.ff_hassummons = 1;
66 ff_getpartysize(&ffx);
67 ff_getsummons(&ffiii);