/* spacedwd.c */
/* Recycle Object */
/* 1st While-loop, ignore as far as space letters. */
/* 2nd While-loop, once reach to a character letter, read them including
 *    blank(' '), until end of line '\0'.
 */
/* I just noticed that the first WHILE-loop's moving Pointer "++from"
 *    doesn't have the Asterisk (*).  The rest of the Pointer "from"
 *    has almost all have the Asterisk (*).   I am not sure this
 *    difference has the special sense, or just a typo.  I double
 *    checked the original, and it was that.   So, I keep just as it is.
 */

# include <ctype.h>

extern char *spacedwd (char *to, char *from)
{
   while ( isspace(*from) && *from!='\0') ++from;
   while (  (!isspace(*from) || *from==' ') && *from!='\0' ) *to++ = *from++;
   *to = '\0';
   return(from);
}