Guest User

Untitled

a guest
Jul 18th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. #define CONVERSION_ERROR -1
  2.  
  3. int8_t char_to_int (char c)
  4. {
  5. if ( c < '0' || c > '9' ) return CONVERSION_ERROR;
  6. return c - '0';
  7. }
Add Comment
Please, Sign In to add comment