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

Function add_months

common/bolt12.c:672–679  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

670}
671
672static bool add_months(struct tm *tm, u32 number)
673{
674 s64 x = number + (s64)tm->tm_mon;
675 if (x > INT_MAX)
676 return false;
677 tm->tm_mon = (int)x;
678 return true;
679}
680
681static bool time_change(u64 *new_start, u64 prevstart, u32 number,
682 bool (*add_time)(struct tm *tm, u32 number),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected