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