mirror of
https://github.com/SEPPDROID/Digital-Research-Source-Code.git
synced 2025-10-23 08:24:18 +00:00
Upload
Digital Research
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
/**********************************************************************
|
||||
* 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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user