mirror of
https://codeberg.org/scip/diceware.git
synced 2025-12-16 18:30:58 +01:00
56 lines
1.4 KiB
C
56 lines
1.4 KiB
C
/*
|
|
* This file is part of dicepwgen
|
|
*
|
|
* Copyright (C) 2015-2016 T.v.Dein.
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
* You can contact me by mail: <tom AT vondein DOT org>.
|
|
*/
|
|
|
|
#ifndef HAVE_DICE_H
|
|
#define HAVE_DICE_H
|
|
|
|
#include <ctype.h>
|
|
#include <getopt.h>
|
|
#include <stdint.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <unistd.h>
|
|
|
|
#include "debug.h"
|
|
#include "dictfile.h"
|
|
#include "tossing.h"
|
|
|
|
#define STRINGIZE(x) #x
|
|
#define STRINGIZE_VALUE_OF(x) STRINGIZE(x)
|
|
|
|
// #define VERSION "1.3.0"
|
|
#define RLEN 1024
|
|
static const char VERSION[] = "1.3.0";
|
|
|
|
extern int humantoss;
|
|
extern int verbose;
|
|
extern int dontjump;
|
|
extern int symbols;
|
|
extern int WMIN;
|
|
extern int WMAX;
|
|
|
|
int usage();
|
|
int main(int argc, char **argv);
|
|
void getwords(char *dictfile, int count);
|
|
|
|
#endif
|