MCPcopy Create free account
hub / github.com/Tencent/Hardcoder / ProcFileReader

Method ProcFileReader

libapp2sys/src/main/cpp/procutil.h:78–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76
77public:
78 ProcFileReader(const char *path) {
79 m_szPath = NULL;
80 fd = 0;
81 line = NULL;
82
83 if (path) {
84 int len = strlen(path);
85 if (len) {
86 m_szPath = new char[len + 1];
87 strcpy(m_szPath, path);
88 line = new char[MAX_LEN];
89 }
90 }
91 }
92
93 ~ProcFileReader() {
94 if (m_szPath) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected