Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. char *endp;
  2. double d;
  3. long l;
  4. l = strtol(argv[1], &endp, 0);
  5. if (argv[1] != endp && *endp == '\0') {
  6. printf("not a valid float\n");
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement