SourceForge Links: Summary Tracker Browse CVS Download |
Roman Numeral Conversion API |
ROMAN2LONGNAMEroman2int − convert ASCII string containing a Roman Numeral value to signed int. LIBRARYRoman Numeral Conversion API (libroman, -lroman) SYNOPSIS#include <roman.h> int
DESCRIPTIONThe function roman2int takes an argument of str and returns an integer containing the value of the Roman Numeral. RETURN VALUESIf successful, roman2int returns the numeric value of str or −1 if an error occurred (in which case, errno is set appropriately). ERRORS
EXAMPLESint num; num =
roman2int("MCMXCVII"); AUTHORWritten by David M. Syzdek. REPORTING BUGSReport bugs to <syzdek@users.sourceforge.net>. COPYRIGHTCopyright (C)
2007 David M. Syzdek. SEE ALSOroman(7), romandate(1), romannum(1), int2roman(3), roman_ctime(3), roman_strftime(3) |