MCPcopy Create free account
hub / github.com/ElementsProject/lightning / add_days

Function add_days

common/bolt12.c:663–670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

661}
662
663static bool add_days(struct tm *tm, u32 number)
664{
665 s64 x = number + (s64)tm->tm_mday;
666 if (x > INT_MAX)
667 return false;
668 tm->tm_mday = (int)x;
669 return true;
670}
671
672static bool add_months(struct tm *tm, u32 number)
673{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected