1 #include <stdio.h> 2 3 void PutForm0(void)4PutForm0 (void) 5 { 6 PutRST (); 7 PutName (); 8 PutLocation (); 9 PutMisc (); 10 PutRig (); 11 PutWeather (); 12 PutJob (); 13 PutAge (); 14 PutMisc (); 15 PutQ_And_Freq (); 16 PutLicense (); 17 } 18 19 void PutForm1(void)20PutForm1 (void) 21 { 22 PutLocation (); 23 PutRST (); 24 PutRig (); 25 PutWeather (); 26 PutMisc (); 27 PutName (); 28 PutLicense (); 29 PutMisc (); 30 PutQ_And_Freq (); 31 PutAge (); 32 PutJob (); 33 } 34 35 void PutForm2(void)36PutForm2 (void) 37 { 38 PutThanks (); 39 PutRST (); 40 PutName (); 41 PutWeather (); 42 PutLocation (); 43 PutJob (); 44 PutLicense (); 45 PutRig (); 46 PutAge (); 47 PutQ_And_Freq (); 48 } 49 50 void PutForm3(void)51PutForm3 (void) 52 { 53 PutLocation (); 54 PutRST (); 55 PutRig (); 56 PutMisc (); 57 PutName (); 58 PutMisc (); 59 PutAge (); 60 PutJob (); 61 PutLicense (); 62 PutMisc (); 63 PutWeather (); 64 PutMisc (); 65 PutQ_And_Freq (); 66 } 67 68 void PutForm4(void)69PutForm4 (void) 70 71 { 72 PutThanks (); 73 PutRST (); 74 PutJob (); 75 PutMisc (); 76 PutMisc (); 77 PutName (); 78 PutAge (); 79 PutLicense (); 80 PutRig (); 81 PutLocation (); 82 PutWeather (); 83 PutMisc (); 84 } 85 86 void PutForm5(void)87PutForm5 (void) 88 { 89 PutLocation (); 90 PutRST (); 91 PutRig (); 92 PutName (); 93 PutJob (); 94 PutAge (); 95 PutMisc (); 96 PutLicense (); 97 PutWeather (); 98 PutMisc (); 99 PutQ_And_Freq (); 100 } 101 PutQSO(void)102PutQSO (void) 103 { 104 /* printf("VVV VVV\n") ; */ 105 PutFirstCallsign (); 106 switch (Roll (6)) 107 { 108 case 0: 109 PutForm0 (); 110 break; 111 case 1: 112 PutForm1 (); 113 break; 114 case 2: 115 PutForm2 (); 116 break; 117 case 3: 118 PutForm3 (); 119 break; 120 case 4: 121 PutForm4 (); 122 break; 123 default: 124 PutForm5 (); 125 break; 126 } 127 printf ("+ %%\n"); 128 PutLastCallsign (); 129 printf ("\n"); 130 } 131