home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #6
/
amigamamagazinepolishissue1998.iso
/
coders
/
biblioteki
/
asyncio
/
src
/
writelineasync.c
< prev
Wrap
C/C++ Source or Header
|
1997-02-18
|
368b
|
22 lines
#include "async.h"
_CALL LONG
WriteLineAsync( _REG( a0 ) AsyncFile *file, _REG( a1 ) STRPTR line )
{
/* Since SAS/C have an inlined strlen... */
#if defined( NOEXTERNALS ) && !defined( __SAS )
LONG i = 0;
STRPTR s = line;
while( *s )
{
++i, ++s;
}
return( WriteAsync( file, line, i ) );
#else
return( WriteAsync( file, line, strlen( line ) ) );
#endif
}