Roman Numeral Conversion API

Roman Numeral Conversion API - C API that converts decimal numbers to Roman Numerals and Roman numerals to decimal numbers
Download

Roman Numeral Conversion API Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • David M. Syzdek
  • Publisher web site:
  • Operating Systems:
  • Mac OS X
  • File Size:
  • 308 KB

Roman Numeral Conversion API Tags


Roman Numeral Conversion API Description

Roman Numeral Conversion API - C API that converts decimal numbers to Roman Numerals and Roman numerals to decimal numbers Roman Numeral Conversion API is a simple C API that converts decimal numbers to Roman Numerals and Roman numerals to decimal numbers.This package 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 `romandate' and `romannum' show possible uses for the functions as well as provide silly tools to play with. What's New in This Release: · updated logic in int2roman() by using switch() instead of if, else if, and else. By using switch(), I was able to reduce variable assignments and if statements. For example the conversion of 90 to XC was reduced by three variable assignments and by one if statements. (syzdek) · increaased efficiency of int2roman() by removing the memset() which zeroed the entire input buffer. Instead I added specific '' terminators to the end the buffer prior to returning from function. This reduced the variable assignments by BUFF_LEN-1 operations. For example with a 1024 byte buffer, this reduced the variable assignments by 1023 operations. (syzdek) · fixed long options `--utc' and `--universial' so they toggle UTC time instead of displaying the usage menu (syzdek) · fixed long option `--date' to accept required argument for setting the date and time (syzdek) · replaced memset() calls with explicit NULL terminators for strings and cleaned up the comments (syzdek) · romannum now accepts multiple numbers on the command line (syzdek) · migrated SCM repository from CVS to Git (syzdek) · removing CVS keywords from files (syzdek) · updated to a newer versions of autotools (syzdek)


Roman Numeral Conversion API Related Software