--- layout: fc_discuss_archives title: Message 10 from Frama-C-discuss on September 2013 ---
> Yes, then it's the best way to achieve what you want. For portability, > if you use your script on different machines where Frama-C might not > always be installed on /usr/local, you can use something like > (Config.datadir ^ "/libc/fc_runtime.c"), but it really depends on your > configuration. Right. So I used the Ocaml module named Unix to add the kernel file. " let in_channel = Unix.open_process_in "frama-c -print-share-path" in let frama_c_share_path = Pervasives.input_line in_channel in let filename = frama_c_share_path ^ "/libc/fc_runtime.c" in Kernel.Files.add filename; " Thank you so much for your help. Kind regards David -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20130903/be429e14/attachment.html>