Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
58
static 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
64
int main(int argc, char** argv) {
65
if (argc < 2) {
Callers
1
main
Function · 0.70
Calls
2
c_str
Method · 0.45
length
Method · 0.45
Tested by
no test coverage detected