• src/sbbs3/scfglib.h scfglib1.c

    From Rob Swindell@VERT to Git commit to main/sbbs/master on Sun Mar 20 20:32:05 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/a466152f730d99d496b04ce1
    Modified Files:
    src/sbbs3/scfglib.h scfglib1.c
    Log Message:
    Create some convenience functions for validating lib/dir/grp/sub nums

    There are lot of places in the code where subnums and dirnums (especially) are compared against total_subs and/or total_dirs or >= 0 without a ton of consistency. We should migrate to use these functions for validity-checking going forward.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net