2 * Mausezahn - A fast versatile traffic generator
3 * Copyright (C) 2008-2010 Herbert Haas
5 * This program is free software; you can redistribute it and/or modify it under
6 * the terms of the GNU General Public License version 2 as published by the
7 * Free Software Foundation.
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 * You should have received a copy of the GNU General Public License along with
15 * this program; if not, see http://www.gnu.org/licenses/gpl-2.0.html
26 // Returns a nice string with default and current value of a given variable
30 // char mystring[256];
31 // mz_def16 ("20 seconds", pd->max_age, mystring)
33 int mz_def16 (char *def
, u_int16_t val
, char *str256
)
36 sprintf(str256
, "The default value is %s. The current value is %u (0x%04x).", def
, val
, val
);