endstream.c