unifdef icon indicating copy to clipboard operation
unifdef copied to clipboard

Add support for ignoring suffix characters in numeric conversions

Open nnbox opened this issue 2 years ago • 0 comments

Introduce a new function strtol_with_suffix to convert a string to a long integer while allowing for certain suffix characters ('L', 'l', 'U', 'u') to be ignored. This function will return the long integer value from the string, or 0 if no valid conversion can be performed. It updates strtol calls in eval_unary to use this new function, improving handling of numeric inputs with suffixes.

nnbox avatar Apr 16 '24 15:04 nnbox