xfpager, and general observations

Harry Putnam reader at newsguy.com
Mon Aug 19 05:37:10 CEST 2002


Dmitry DELTA Malykhanov <d726f6e at SDF.LONESTAR.ORG> writes:

> Harry, could you please add one more line to the code, dumping incoming
> commands to the file (just next to the existing fprintf statement):
>
> fprintf(log, "MyName = %s\n", MyName);

Not sure what you wnat here.  Existing code looks like this:
 (beginning line 871
871 while (tline != NULL)
872   {
873     int g_x, g_y, flags;
874     unsigned width, height;
875
876 	 FILE *log;
877	 if( (log=fopen("/home/reader/XFPAGER.LOG", "a+"))!=NULL ) {
878				  fprintf(log, "%s", tline);
879				    fclose(log);
880	  }				 

Where does the new line go?  And what does it actually do?



More information about the Xfce-dev mailing list