MCPcopy Create free account
hub / github.com/F-Stack/f-stack / db_read_char

Function db_read_char

freebsd/ddb/db_lex.c:102–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100static int db_look_char = 0;
101
102static int
103db_read_char(void)
104{
105 int c;
106
107 if (db_look_char != 0) {
108 c = db_look_char;
109 db_look_char = 0;
110 }
111 else if (db_lp >= db_endlp)
112 c = -1;
113 else
114 c = *db_lp++;
115 return (c);
116}
117
118static void
119db_unread_char(c)

Callers 1

db_lexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected