mescc: Mes C Library: Prepare for M2-Planet: strlen.

* lib/string/strlen.c: : Rewrite C-constructs not supported by M2-Planet.
This commit is contained in:
Jan Nieuwenhuizen 2019-10-20 19:30:04 +02:00
parent 2124bfadd0
commit cae438d1db
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
1 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,6 @@
/* -*-comment-start: "//";comment-end:""-*-
* GNU Mes --- Maxwell Equations of Software
* Copyright © 2016,2017,2018 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
* Copyright © 2016,2017,2018,2019 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
*
* This file is part of GNU Mes.
*
@ -24,7 +24,9 @@ size_t
strlen (char const *s)
{
int i = 0;
while (s[i])
i++;
while (s[i] != 0)
i = i + 1;
return i;
}