And as for copyright, which was the main subject of this article, preparing or copying the C code can't possibly violate anyone's copyright in the A code.
As for patents, the use of the C code violates the same patents as use of the A code.
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds