Is there a way to check if a string can be a float in C? int len; float ignore; char *str = "5 23 fkdj"; int ret = sscanf(str, "%f %n", ignore, len); printf("%d", ret==1 !str[len]); !str[len] expression will be false if the string contains characters not included in the float Also note space after %f to address trailing spaces Demo
c++ - LTO with LLVM and CMake - Stack Overflow I am trying to apply Link Time Optimization with LLVM on a CMake Project, that creates a shared library My question is pretty much the same as this one: Switching between GCC and Clang LLVM using