Motorola MC68340 Spezifikationen Seite 35

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 36
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 34
35
puts(": Received Value");
}
/**************************************************************************/
/**************************************************************************/
/* Module : AskUser() */
/* Parameters : NONE */
/* Return Type : char */
/* Created On : 05/04/95 */
/* Modified On : 05/04/95 */
/* Description : This routine prompts the user for the continuation of */
/* of a test. */
/**************************************************************************/
/**************************************************************************/
char AskUser()
{
char choice;
puts("Do you wish to continue (Y/N):\n");
while (choice = getchar()) /*read characters until y,Y,n,N */
{
if ((choice == 'y') || (choice == 'Y')) return TRUE;
if ((choice == 'n') || (choice == 'N')) return FALSE;
}
}
/**************************************************************************/
Seitenansicht 34
1 2 ... 30 31 32 33 34 35 36

Kommentare zu diesen Handbüchern

Keine Kommentare