#ifndef _WRITE_STRING_
#define _WRITE_STRING_
//-----------------------------------------------------------------------------
// function	write_string
// purpose	Determine length of string and call write().
// arguments	1 (int)	file descriptor to write to
//		2 (const char *) the string to write
// returns	whatever write() returns
//-----------------------------------------------------------------------------
#include "string_length.c"

static
int
write_string (
	int		arg_fd
	,
	const char *	arg_str
    )
{
    return write( arg_fd, arg_str, string_length( arg_str ) );
}
#endif /* _WRITE_STRING_ */

