MCPcopy Create free account
hub / github.com/demoth/jake2 / strlen

Method strlen

qcommon/src/main/java/jake2/qcommon/util/Lib.java:113–118  ·  view source on GitHub ↗

Like in libc.

(char in[])

Source from the content-addressed store, hash-verified

111
112 /** Like in libc. */
113 public static int strlen(char in[]) {
114 for (int i = 0; i < in.length; i++)
115 if (in[i] == 0)
116 return i;
117 return in.length;
118 }
119
120 /** Like in libc. */
121 public static int strlen(byte in[]) {

Callers 2

ConsoleMethod · 0.95
texinfo_tMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected