* @brief Returns the next character in the input string * * @param str * @return CHAR the next character at the current position in the string */
| 1039 | * @return CHAR the next character at the current position in the string |
| 1040 | */ |
| 1041 | char |
| 1042 | sgetc(char * str) |
| 1043 | { |
| 1044 | char c = str[InputIdx]; |
| 1045 | |
| 1046 | if (c) |
| 1047 | { |
| 1048 | InputIdx++; |
| 1049 | return c; |
| 1050 | } |
| 1051 | else |
| 1052 | { |
| 1053 | return EOF; |
| 1054 | } |
| 1055 | } |
| 1056 | |
| 1057 | /** |
| 1058 | * @brief Check whether a string is a keyword or not |
no outgoing calls
no test coverage detected