#include <stdio.h>
|
|
|
|
|
|
/* Declare a buffer for user input of size 2048 */
|
|
static char input[2048];
|
|
|
|
|
|
int main(int argc, char const *argv[])
|
|
{
|
|
/* Print version and exit information */
|
|
puts("Lispy version 0.0.0.0.1");
|
|
puts("Press Ctrl+c to exit\n");
|
|
|
|
/* In a never ending loop */
|
|
while (1) {
|
|
/* Output our prompt */
|
|
fputs("lispy> ", stdout);
|
|
|
|
/* Read a line of user input of max size 2014 */
|
|
fgets(input, 2048, stdin);
|
|
|
|
/* Echo input back to user */
|
|
printf("No you're a %s", input);
|
|
}
|
|
|
|
return 0;
|
|
}
|