/*====================================================================*
*
* void scanprint (SCAN * content, signed fd);
*
* scan.h
*
* write the current token to the device associated with a file
* descriptor; this function is identical to writetoken but adds
* a newline character after each write;
*
*. Motley Tools by Charles Maier <cmaier@cmassoc.net>;
*: Published 2001-2006 by Charles Maier Associates Limited;
*; Released under the GNU General Public Licence v2 and later;
*
*--------------------------------------------------------------------*/
#ifndef SCANPRINT_SOURCE
#define SCANPRINT_SOURCE
#include <unistd.h>
#include "../scan/scan.h"
void scanprint (SCAN * content, signed fd)
{
write (fd, content->first, content->final - content->first);
write (fd, "\n", 1);
return;
}
#endif