Roman Numeral Conversion API
Details
| Last Update: | 2008-02-02 17:01:10 |
| Version: | 0.0.4 |
| License/Program Type: | GPL (GNU General Public License) |
| Publisher: | David M. Syzdek |
| Price: | $0.00 |
Description:
Roman Numeral Conversion API project was developed to provide
an easy method of including Roman Numeral values in the output of
programs written in C/C++. There are example programs that
demonstrates the use of the functions included in the library. The
utilities `romannum' and `romandate' show possible uses for the
functions as well as provide silly tools to play with.
Programming Examples
The first example demonstrates generating Roman Numeral strings
from an integer:
/ compile with gcc -lroman -o test1 test1.c /
include
include
int main(void);
int main(void)
{
const char roman;
roman = long2roman(3132);
if (!(roman))
{
perror("long2roman()");
return(1);
};
printf("Roman Numeral: %sn", roman);
return(0);
}
If the above program is run on a Posix system, the output
should be similiar to the following:
syzdek@tacntock$ gcc -lroman -o test1 test1.c
syzdek@tacntock$ ./test1
Roman Numeral: MMMCXXXII
syzdek@tacntock$
The second example demonstrates converting a Roman Numeral
string into an integer:
/ compile with gcc -lroman -o test2 test2.c /
include
include
int main(void);
int main(void)
{
int num;
num = roman2long("MMMCXXXII");
if (num < 0)
{
perror("roman2long()");
return(1);
};
printf("Number: %in", num);
return(0);
}
If the above program is run on a Posix system, the output
should be similiar to the following:
syzdek@tacntock$ gcc -lroman -o test2 test2.c
syzdek@tacntock$ ./test2
Number: 3132
syzdek@tacntock$
Additional examples are included in the `examples'
directory.
0 comments
Add to
Roman Numeral Conversion API Version History
Related Software
|
|
From category: Utilities |
| BeeDiff is a graphical file comparator.... |
|
|
From category: Backup |
| Removable media data recovery software is safe, easy and Non-Destructive data recovery software which is used to restore, undelete, unerase, recover or repair your lost audio video files and folders f... |
|
|
From category: Utilities |
| Activity Manager 0.2.1 is utilities software developed by Jean-Francois Brazeau. Activity Manager is a project management tool. Activity Manager helps a project leader to manage and check his colla... |
|
|
From category: Other-Tools |
| AVIRA for Exim is a comprehensive antivirus solution for Linux, FreeBSD and OpenBSD mailservers, functioning at high speed and filtering against malicious contents by checking both incoming and outgoi... |
|
|
From category: Utilities |
| AnyRemote 2.0 is utilities software developed by Mike Fedotov. AnyRemote&039;s goal of this project is to provide wireless Bluetooth remote control service on Linux. In contrast with other Bluetoo... |
|
|
From category: Utilities |
| Checkservice 1.2.0 is utilities software developed by Paul van Tilburg. Checkservice is written, as the name of the program suggests, to check the status of the services that you run on your own or... |
|
|
From category: Linux-Distributions |
| Features: -Starts automatically as a dhcp client. -Integrated Firewall which auto starts on DHCP networks in stealth mode. -Slapt-get, with multiple rc files with different sources, is included. -C... |
|
|
From category: Backup |
| FAT data recovery software recovers lost, deleted, formatted, erased files and folders from all windows partition. Data Recovery software for FAT recovers data files and folders lost due to formatted/... |
|
|
From category: Utilities |
| DocSys 1.09 is utilities software developed by Bryce Harrington. DocSys is a document management system written in Perl and using MySQL for storing metadata about documents. Installation: To... |
|
|
From category: Utilities |
| GCstar is an application for managing your collections.... |
|
|
From category: Utilities |
| Command Line Progress Bar 1.10.7 is utilities software developed by Michael Peek. Command Line Progress Bar is a simple tool to copy a stream of data and print a display for the user on stderr show... |
|
|
From category: Utilities |
| cowsay is a simple text filter.... |
|
|
From category: Other-Tools |
| Are you a small organization running a couple of mission-critical Linux servers in one location with limited IT staff? How much business would you lose if these servers went down? Acronis True Image 9... |
|
|
From category: Utilities |
| Alist 0.9.2 is utilities software developed by Paul Farrall. Alist is a program that collects information about a systems and stores it in a database for users to peruse. The program consist... |
|
|
From category: Utilities |
| bkmrkconv 1.12 is utilities software developed by Andrew Flegg. bkmrkconv project converts Mozilla&039;s bookmarks into a series of web pages, which, by default, can mimic the style of a Yahoo-lik... |
Leave a comment