| 24 | #include "../../fceu.h" |
| 25 | |
| 26 | static void GetString(char *s, int max) |
| 27 | { |
| 28 | int x; |
| 29 | if ( fgets(s,max,stdin) == nullptr ) |
| 30 | { |
| 31 | s[0] = 0; |
| 32 | return; |
| 33 | } |
| 34 | |
| 35 | for(x=0;x<max;x++) |
| 36 | if(s[x]=='\n') |
| 37 | { |
| 38 | s[x]=0; |
| 39 | break; |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | /* Get unsigned 16-bit integer from stdin in hex. */ |
| 44 | static uint32 GetH16(unsigned int def) |
no outgoing calls
no test coverage detected