+ if (fscanf(infile,"# owner: %s\n",buf) != 1) {
+ fclose(infile);
+ return(0);
+ }
+
+ fclose(infile);
+ return((strcmp(name,buf) == 0) ? 1 : 0);
+}
+
+/*
+ * Print the owner of the job. This is stored on the first line of the
+ * spoolfile. If we run into trouble getting the name, we'll just print "???".
+ */
+powner(file)
+char *file;
+{
+ char owner[80]; /* the owner */
+ FILE *infile; /* I/O stream to spoolfile */
+
+ /*
+ * Open the job file and grab the first line.
+ */
+
+ if ((infile = fopen(file,"r")) == NULL) {
+ printf("%-10.9s","???");
+ return;