Version 7.0
Copyright © 2021 Lowell D. Thomas
APG
… an ABNF Parser Generator
The Data Conversion Utility

This example will demonstrate the construction and use of the data conversion utility.

  • application code must include header files:
    • ../../utilities/utilities.h
  • application compilation must include source code from the directories:
    • ../../library
    • ../../utilities
  • application compilation must define macros:
    • (none)

The compiled example will execute the following cases. Run the application with no arguments for application usage.

  • case 1: Display application information. (type names, type sizes and defined macros)
  • case 2: Compare the conversion object results with the Linux iconv command-line application.
  • case 3: Get the raw, 32-bit decoded data.
  • case 4: Encode raw, 32-bit data.
  • case 5: Add base64 encoding and decoding.
APG Version 7.0 is licensed under the 2-Clause BSD License,
an Open Source Initiative Approved License.