MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / getc

Method getc

libraries/AP_JSON/AP_JSON.cpp:405–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403 {
404 }
405 int getc()
406 {
407 if (consumed_) {
408 if (*cur_ == '\n') {
409 ++line_;
410 }
411 ++cur_;
412 }
413 if (cur_ == end_) {
414 consumed_ = false;
415 return -1;
416 }
417 consumed_ = true;
418 return *cur_ & 0xff;
419 }
420 void ungetc()
421 {
422 consumed_ = false;

Callers 4

_parse_quadhexFunction · 0.80
_parse_stringFunction · 0.80
_parse_numberFunction · 0.80
_parseFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected