MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / getDateDefine

Function getDateDefine

externals/simplecpp/simplecpp.cpp:3328–3333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3326}
3327
3328static std::string getDateDefine(const struct tm *timep)
3329{
3330 char buf[] = "??? ?? ????";
3331 strftime(buf, sizeof(buf), "%b %d %Y", timep);
3332 return std::string("\"").append(buf).append("\"");
3333}
3334
3335static std::string getTimeDefine(const struct tm *timep)
3336{

Callers 1

preprocessMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected