/*
 *			g e t l i t e r a . c
 */

/*)LIBRARY
*/

#ifdef DOCUMENTATION

title	getlit	Get Literal From Buffer
index		get Literal from buffer

synopsis

	int
	getliteral(ccp,dest)
	 char **ccp;	/* pointer to buffer pointer */
	 char *dest;	/* pointer to destination buffer */

description

	Function to copy a data element from a buffer  to a given
	destination, starting with the character currently pointed to.

	The function copies all of the data, including any quotemarks,
	starting from the current character, up to the next whitespace
	or NUL. The pointer is left pointing to the first whitespace
	character or NUL.
	Nothing is returned.

bugs

author

	Machiavelli Systems

#endif



	

getliteral(ccp, dest)

char		**ccp, *dest;

{
while ((!iswhite(**ccp)) && (**ccp != '\n') && (**ccp != '\0'))
			(*dest++ = *(*ccp)++);	/* copy the char */

*dest = '\0';		/* terminate the copied string */

}

