diff options
Diffstat (limited to 'utils/clen.go')
-rw-r--r-- | utils/clen.go | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/utils/clen.go b/utils/clen.go deleted file mode 100644 index 17d1c4b..0000000 --- a/utils/clen.go +++ /dev/null @@ -1,11 +0,0 @@ -package utils - -// Clen returns the length of a null terminated string like in C -func Clen(n []byte) int { - for i := 0; i < len(n); i++ { - if n[i] == 0 { - return i - } - } - return len(n) -} |