Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Validar titulo de nota ingresada
- do{
- werase(barra_mensajes);
- wprintw(barra_mensajes,"#Informacion: Presione ENTER para cancelar (vacio)");
- wrefresh(barra_mensajes);
- move(2, 0);
- attron(A_BOLD);
- printw("+Titulo\t\t: ");
- attroff(A_BOLD);
- refresh();
- getstr(p_notas->titulo_nota);
- if(p_notas->titulo_nota[0] == 0 )
- {
- curs_set(0);
- noecho();
- werase(barra_mensajes);
- wprintw(barra_mensajes,"#Informacion: Volviendo al menu principal...");
- wrefresh(barra_mensajes);
- sleep(2);
- werase(barra_mensajes);
- wrefresh(barra_mensajes);
- delwin(barra_superior);
- delwin(barra_mensajes);
- return(0);
- }
- if( ! ( p_notas->titulo_nota[0] != ' ' ) )
- {
- curs_set(0);
- noecho();
- werase(barra_mensajes);
- wprintw(barra_mensajes,"#Error: debe ingresar un valor...");
- wrefresh(barra_mensajes);
- sleep(1);
- werase(barra_mensajes);
- wrefresh(barra_mensajes);
- curs_set(2);
- echo();
- }
- }while( ! ( ( p_notas->titulo_nota[0] != 0 ) && ( p_notas->titulo_nota[0] != ' ' ) ) );
Advertisement
Add Comment
Please, Sign In to add comment