Arithmetic evaluation/C: Difference between revisions

Content added Content deleted
m (Added some comments in)
m (Comments)
Line 40: Line 40:
}
}


/* Will consume a character from the input,
/* Will "consume" a character from the input,
* (such as +, -, *, etc.) and return it.
* (such as +, -, *, etc.) and return it.
* By consume, I'm really just moving the pointer
* forward and disregarding the character for
* future purposes.
*/
*/
char consume_char(const char* string, char c) {
char consume_char(const char* string, char c) {