• over_clox@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    18 hours ago

    Me while doing error handling?

    Well shit, all my functions both take and return memory addresses. When one of those blocks of data happen to fail the data sanity check, the function returns either -1, -2, -3, -4.

    See, you’ll never get such numbers as proper memory addresses, they’re assigned as blocks, larger than 4 bytes…

    So, if one of my functions returns a -1 through -4, that tells me which argument to the function failed the sanity check…