Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/1player/host-spawn
/ nullTerminatedByteString
Function
nullTerminatedByteString
command.go:25–27 ·
view source on GitHub ↗
(s string)
Source
from the content-addressed store, hash-verified
23
}
24
25
func
nullTerminatedByteString(s string) []byte {
26
return
append([]byte(s), 0)
27
}
28
29
// Extract exit code from waitpid(2) status
30
func
interpretWaitStatus(status uint32) (int, bool) {
Callers
1
SpawnAndWait
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected