MCPcopy Create free account
hub / github.com/acl-dev/acl / acl_vstream_getc

Function acl_vstream_getc

lib_acl/src/stdlib/acl_vstream.c:403–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401}
402
403int acl_vstream_getc(ACL_VSTREAM *fp)
404{
405 if (fp == NULL) {
406 return ACL_VSTREAM_EOF;
407 }
408 if (fp->read_cnt <= 0 && read_buffed(fp) <= 0) {
409 return ACL_VSTREAM_EOF;
410 }
411
412 fp->read_cnt--;
413 fp->offset++;
414 return *fp->read_ptr++;
415}
416
417int acl_vstream_nonb_readn(ACL_VSTREAM *fp, char *buf, int size)
418{

Callers 11

test_fseek3Function · 0.85
test_fseek2Function · 0.85
test_fseekFunction · 0.85
acl_vstream.cFile · 0.85
acl_vstream_readtagsFunction · 0.85
acl_vstream_getsFunction · 0.85
acl_vstream_gets_nonlFunction · 0.85
acl_getcharFunction · 0.85
acl_readllineFunction · 0.85
getchMethod · 0.85
mainFunction · 0.85

Calls 1

read_buffedFunction · 0.85

Tested by 3

test_fseek3Function · 0.68
test_fseek2Function · 0.68
test_fseekFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…