Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <stdint.h>
  4. #include <inttypes.h>
  5.  
  6. int main() {
  7. while(!feof(stdin)) {
  8. char hexstring[20];
  9. fgets(hexstring, 20, stdin);
  10. printf("%" PRIi64 "\n", strtoll(hexstring, NULL, 16));
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement