From: Diane Holt <hol...@yahoo.com>
lists.c:
list_print( l )
LIST *l;
{
for( ; l; l = list_next( l ) )
printf( "%s ", l->string );
}
I suppose you could swap it around and have a leading space, if that would be
better for you -- or you could get rid of the space in list_print, and be
responsible for it in your rules/targets (but that could get messy pretty
fast).
How about this:
void
list_print( l )
LIST *l;
{
int ptd = 0;
for( ; l; ptd = 1, l = list_next( l ) )
printf( "%s%s", ptd ? " " : "", l->string );
}
Graeme Gill.