Update scanner.c
This commit is contained in:
parent
24ff911c78
commit
f7a2389e70
1 changed files with 100 additions and 102 deletions
|
|
@ -5,7 +5,6 @@ char* reverseStrchr(const char* str, int character) {
|
||||||
char* result = NULL;
|
char* result = NULL;
|
||||||
// Iterate through the string
|
// Iterate through the string
|
||||||
while (*str != '\0') {
|
while (*str != '\0') {
|
||||||
// If the character is found, update the result pointer
|
|
||||||
if (*str == character) {
|
if (*str == character) {
|
||||||
result = (char*)str;
|
result = (char*)str;
|
||||||
}
|
}
|
||||||
|
|
@ -15,7 +14,6 @@ char* reverseStrchr(const char* str, int character) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void parse (char input[75]) {
|
void parse (char input[75]) {
|
||||||
//Morphs input assuming it's a scan to batch code
|
|
||||||
int lenny;
|
int lenny;
|
||||||
if (strcmp(&input[0], "") == 0) {
|
if (strcmp(&input[0], "") == 0) {
|
||||||
// pass
|
// pass
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue