MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / setMOTDCache

Function setMOTDCache

src/motd.cpp:82–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82static void setMOTDCache(const char *sz)
83{
84 FILE *pf = fopen(szMotdCachePath(), "wb");
85 if (pf == NULL)
86 return;
87 size_t celem = fwrite(sz, strlen(sz), 1, pf);
88 (void)celem; // best effort
89 fclose(pf);
90}
91
92extern "C" char *fetchMOTD(int cache, int enable_motd)
93{

Callers 1

fetchMOTDFunction · 0.85

Calls 1

szMotdCachePathFunction · 0.85

Tested by

no test coverage detected