summaryrefslogtreecommitdiff
path: root/tests/strings.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/strings.c')
-rw-r--r--tests/strings.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/strings.c b/tests/strings.c
new file mode 100644
index 0000000..04a9038
--- /dev/null
+++ b/tests/strings.c
@@ -0,0 +1,10 @@
+int main() {
+ char *str = "Hello";
+ int len = 0;
+
+ while (str[len] != 0) {
+ len = len + 1;
+ }
+
+ return len;
+}