Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LemonOSProject/LemonOS
/ GetNextPTY
Function
GetNextPTY
Kernel/src/tty/pty.cpp:27–33 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
25
char nextPTY =
'0'
;
26
27
char GetNextPTY(){
28
nextPTY++;
29
if(nextPTY <
'a'
&& nextPTY >
'9'
) nextPTY =
'a'
;
30
else if (nextPTY <
'A'
&& nextPTY >
'z'
) nextPTY =
'A'
;
31
32
return nextPTY;
33
}
34
35
List<PTY*>* ptys = NULL;
36
Callers
1
GrantPTY
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected