next up previous contents
Next: Notes Up: Using CLW Previous: Normal mode   Contents

Wraper mode

It is also possible to use the C library substitutes without having to change the existing code. This can be achieved by a compiler replacement in combination with the C pre-processor. In wrapper-mode, all (existing) files (that should become safe) have to be (re)compiled with a special wrap option. The file should be included as first include file. This file will translate calls to the standard C library to the CLW wrappers:
     gcc -include wrap.h test.c ­lclw

An example of a script that does this automatically is included in the test-directory ("mygcc")



Erwin Nijmeijer 2002-09-26