mirror of
https://github.com/SEPPDROID/Digital-Research-Source-Code.git
synced 2025-10-23 16:34:07 +00:00
19 lines
375 B
C
19 lines
375 B
C
/**********************************************************************
|
|
* STRLEN - finds the number of non-null characters in s.
|
|
*
|
|
* WORD strlen(s)
|
|
* BYTE *s;
|
|
**********************************************************************/
|
|
|
|
#include <portab.h>
|
|
|
|
WORD strlen(s)
|
|
REG BYTE *s;
|
|
{
|
|
REG BYTE *p;
|
|
for( p = s; *p; p++ ) /* advance *p until NULL. */
|
|
;
|
|
return(p-s);
|
|
}
|
|
|