Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char *endp;
- double d;
- long l;
- l = strtol(argv[1], &endp, 0);
- if (argv[1] != endp && *endp == '\0') {
- printf("not a valid float\n");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement