MCPcopy 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
25func nullTerminatedByteString(s string) []byte {
26 return append([]byte(s), 0)
27}
28
29// Extract exit code from waitpid(2) status
30func interpretWaitStatus(status uint32) (int, bool) {

Callers 1

SpawnAndWaitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected