Skip to content

Validate a ISO6346 compliant container number against the supplied check digit

License

Notifications You must be signed in to change notification settings

meMuszr/iso6346

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ISO6346 in C

Purpose

To validate a ISO6346 compliant container number against the supplied check digit

Intent

Free Sunday afternoon - had an interesting problem at work with a flawed check digit validator. After snooping around, noticed there was no fun implementation, either by way of translating letters through a key<>value map or utilizing #indexOf( . This program does the translation programatically

Another reason being that I needed a new project in C and noticed an implementation did not exist, gave me an excuse to utilize the PCRE2 lib

Functionality

Reads from stdin and outputs to stdout if successful; otherwise, stderr

Compiling

meson setup build
ninja -C build

TODO

  • Package for distrubtions (deb / rpm / pkgbuild / brew formulae)

About

Validate a ISO6346 compliant container number against the supplied check digit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published