New paste Repaste Download
#include <stdio.h>
int main()
{
    char inputShell;
    while (1)
    {
        printf("cpass> ");
        
        inputShell = getchar();
        while(getc(stdin) != '\n'); // clear stdin ('\n')
        if (inputShell == 'q') break;
    }
    
    return 0;
}
Filename: None. Size: 291b. View raw, , hex, or download this file.

This paste expires on 2024-12-24 13:12:07.886963. Pasted through web.