void putpostlude(void) { putpages(); fprintf(pfd, "%%%%Trailer\n"); fprintf(pfd, "end\n"); fprintf(pfd, "%%%%Pages: %d\n", pspno); fprintf(pfd, "%%%%EOF\n"); fclose(pfd); /* stderr, in case user redirected output */ fprintf(stderr, "spin: wrote %d pages into '%s.ps'\n", pspno, oFname?oFname->name:"msc"); exit(0); }
void putpostlude(void) { char cmd[512]; putpages(); fprintf(pfd, ".c lower grid\n"); fprintf(pfd, ".c raise mesg\n"); fclose(pfd); fprintf(stderr, "seed used: -n%d\n", WhatSeed()); sprintf(cmd, "wish -f %s.tcl &", oFname?oFname->name:"msc"); fprintf(stderr, "%s\n", cmd); (void) unlink("pan.pre"); exit (system(cmd)); }