• qaz@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 year ago

    My comment wasn’t that clear. 1254 is with a 90% reduction and the example question about atol’s behavior was just an example. I looked it up earlier that day but was unable to find it using Google.

    atol is a C/C++ function that takes in a char pointer and returns a long. I was trying to figure out if it would gracefully stop when it encountered non-numeric characters, if it would skip them or if it would cause undefined behavior.