MCPcopy Create free account
hub / github.com/beefytech/Beef / WriteStringToFile

Function WriteStringToFile

BeefTools/BeefMem/gperftools/src/tests/sampling_test.cc:58–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58static void WriteStringToFile(const string& s, const string& filename) {
59 FILE* fp = fopen(filename.c_str(), "w");
60 fwrite(s.data(), 1, s.length(), fp);
61 fclose(fp);
62}
63
64int main(int argc, char** argv) {
65 if (argc < 2) {

Callers 1

mainFunction · 0.70

Calls 2

c_strMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected