2
* Copyright 2009 CrossWire Bible Society (http://www.crosswire.org)
3
* CrossWire Bible Society
7
* This program is free software; you can redistribute it and/or modify it
8
* under the terms of the GNU General Public License as published by the
9
* Free Software Foundation version 2.
11
* This program is distributed in the hope that it will be useful, but
12
* WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* General Public License for more details.
24
#ifndef NO_SWORD_NAMESPACE
25
using sword::from_rom;
28
int main(int argc, char **argv) {
30
fprintf(stderr, "usage: %s <roman_numeral>\n", *argv);
33
/* I don't think we need to_rom, do we? anyway, it isn't written
35
if (isdigit(argv[1][0])) {
36
to_rom(atoi(argv[1]), buf);
37
std::cout << buf << std::endl;
40
else std::cout << from_rom(argv[1]) << std::endl;