(b) Endowment funds created for charitable or educational purposes may be invested as provided by law governing the investment of funds held in trust by trustees.
(c) Funds held as permanent funds or endowment funds other than those described in subdivision (b) may be invested as provided by law.