project/weight.c
/**
 * Prints current user and speaks via TTS (eSpeak).
 */
Prints current user and speaks via TTS (eSpeak).
Prints current user and speaks via TTS ( eSpeak ) .
void displayCurrentUser()
{
  char command[128];
  if (currentUser == -1)
  {
    printf("Current User: Guest\n");
    snprintf(command, sizeof(command), "sudo espeak \"Guest\"");
  } else {
    printf("Current User (ID:%d): %s\tProfile %i\n", users[currentUser].id, users[currentUser].name, currentUser+1);
    snprintf(command, sizeof(command), "sudo espeak \"Profile %i: %s\"", currentUser+1, users[currentUser].name);
  }
  system(command);
}
void displayCurrentUser ( ) { char command [ 128 ] ; if ( currentUser == -1 ) { printf ( " \n " ) ; snprintf ( command , sizeof ( command ) , " \" \" " ) ; } else { printf ( " \t \n " , users [ currentUser ] . id , users [ currentUser ] . name , currentUser + 1 ) ; snprintf ( command , sizeof ( command ) , " \" \" " , currentUser + 1 , users [ currentUser ] . name ) ; } system ( command ) ; }
Prints current user and speaks via TTS (eSpeak).
Prints current user and speaks via TTS ( eSpeak ) .
//printf("-----displayCurrentUser()-----\n");