Skip to contentSkip to conversation

xfbbd patch for satellite characteristics

PATCH Bernard Pidoux 1 participant 1 message Jul 27, 2004 2 messages not in the archive

lore
Share & tools
lore
#2 lore raw
In reply to a message not in the archive

Hi All,

I have written a small patch for xfbbd BBS trajovl.c source file.
When applied it will add an asterix displayed after the satellite number in satellite submenu List only when a satellite documentation file is present. Otherwise, the field will be left blank.

This will be usefull for users who want to consult the satellites characteristic files that contain satellite documentations coming from the most recent AMSAT ANS bulletins (if the sysop has included the satdoc housekeeping utility I wrote for this usage). See here the different versions of SATDOC for DOS, Win32, Linux

http://ftp.lip6.fr/jussieu/labos/physio/

Here follows the patch trajovl.diff

73's de Bernard, f6bvp

trajovl.c +9 -0
@@ -504,6 +504,8 @@
 	int i = 0;
 	satel bufsat;
 	FILE *fptr;
+	char satstr[80];
+	FILE *fptr2;
 
 	cr ();
 	fptr = ouvre_sat ();
@@ -511,6 +513,13 @@
 	{
 		sprintf (varx[0], "%3d", i++);
 		sprintf (varx[1], "%-17s", bufsat.dd);
+		sprintf (satstr, "sat\\%ld.sat", bufsat.cat);
+		if ((fptr2 = fbb_fopen( d_disque (satstr),"r+b")) != NULL)
+		{
+			strcat (varx[0]," *");
+		} else
+        	strcat (varx[0],"  ");
+
 		texte (T_TRJ + 39);
 		if ((i % 3) == 0)
 			cr_cond ();