--- layout: fc_discuss_archives title: Message 9 from Frama-C-discuss on August 2015 ---
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Frama-c-discuss] fopen and null pointers



When I'm using "fopen" in a test case and comparing it's result
with NULL I get a warning in the value analysis:

  fp = fopen("./seq","r");
  /*@ assert Value: ptr_comparison: \pointer_comparable(fp, (void *)0); */

Is there a way I can annotate this call or the fopen function
to specify that NULL is a valid return value?

-- 
Tim Newsham | www.thenewsh.com/~newsham | @newshtwit | thenewsh.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20150817/2a075d8d/attachment.html>