Files
Digital-Research-Source-Code/CPM OPERATING SYSTEMS/CPM 86/CONCURRENT/CCPM-86 3.1 SOURCE/D6/FIRSTCH.C
Sepp J Morris 31738079c4 Upload
Digital Research
2020-11-06 18:50:37 +01:00

25 lines
768 B
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*----------------------------------------------------------------------*\
| NAME : firstch |
| CREATED : 15-August-83 LAST MODIFIED: 15-August-83 |
| FUNCTION: Firstch finds and returns the first non-white |
| character in a string passed to it. |
| INPUT : str -- ptr to string to scan. |
| OUTPUT : Returns first non-white character found, or NULL |
| if none was found. |
\*----------------------------------------------------------------------*/
#include <portab.h>
#include "utildef.h"
BYTE firstch( str )
BYTE *str; /* source to search */
{
BYTE *sptr;
sptr = str;
while( *sptr == ' ' || *sptr == '\t' )
sptr++; /* ignore white space */
return( *sptr );
}