来源:https://stackoverflow.com/questions/2024648/convert-a-string-to-int-but-only-if-really-is-an-int 标签 c integer validation strtol