Get unsigned 8-bit integer from stdin in decimal. */
| 60 | |
| 61 | /* Get unsigned 8-bit integer from stdin in decimal. */ |
| 62 | static uint8 Get8(unsigned int def) |
| 63 | { |
| 64 | char buf[32]; |
| 65 | |
| 66 | if ( fgets(buf,ARRAY_SIZE(buf),stdin) == nullptr ) |
| 67 | { |
| 68 | return def; |
| 69 | } |
| 70 | if(buf[0]=='\n') |
| 71 | return(def); |
| 72 | sscanf(buf,"%u",&def); |
| 73 | return def; |
| 74 | } |
| 75 | |
| 76 | static int GetI(int def) |
| 77 | { |
no outgoing calls
no test coverage detected