MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / fopen

Function fopen

tools/python-3.11.9-amd64/Tools/scripts/ndiff.py:61–65  ·  view source on GitHub ↗
(fname)

Source from the content-addressed store, hash-verified

59# open a file & return the file object; gripe and return 0 if it
60# couldn't be opened
61def fopen(fname):
62 try:
63 return open(fname)
64 except IOError as detail:
65 return fail("couldn't open " + fname + ": " + str(detail))
66
67# open two files & spray the diff to stdout; return false iff a problem
68def fcompare(f1name, f2name):

Callers 4

GetVersionFromFileFunction · 0.85
SubstituteFileFunction · 0.85
fcompareFunction · 0.85
random_deviceMethod · 0.85

Calls 3

failFunction · 0.85
strFunction · 0.85
openFunction · 0.50

Tested by

no test coverage detected