mirror of
https://github.com/sigmasternchen/chaOS
synced 2025-03-15 05:38:54 +00:00
9 lines
142 B
C
9 lines
142 B
C
#include "string.h"
|
|
|
|
int getStringLength (char* string) {
|
|
for (int i = 0; ; i++) {
|
|
if (string[i] == '\0')
|
|
return i + 1;
|
|
}
|
|
return 0;
|
|
}
|