// Dream-OE.cpp : Defines the entry point for the console application.
//




#include <stdio.h>
#include <stdlib.h>

int askQuestion(char * string_)
{
    printf("%s: ", string_);

    getc(stdin);

    printf("\r\n");

    return 0;

}

// this will eventually be a funciton that
// all strings will be passed thru to check
// for buffer overflows and any other errors.
int mStringPass(char *s_, int i_length /*not sure how to accept a value here */ )
{
    int i_l = 0;// should be char

    while(i_l++ != i_length)
    {
        if(s_[i_l] = 0)
        {
            return(i_l);
        }
    }
    return -1;
}


int main(int argc, char *argv[])
{
    int keyPress;

    printf("Dream-OE 0.0.1.2pre-alpha Starting up!\r\n");
    printf("press enter to continue\r\n");
    getc(stdin);

    printf("press 1 and press enter for a brief introduction.\r\n");
    printf("press 2 and press enter to run a script.\r\n");
    printf("press x and press enter to exit.\r\n");

    askQuestion("poop");                                    /* TEST! */
    
    
    
    
    /* needs testing, keyPress used to be of type char, now it's int */
    keyPress = getc(stdin);    

    printf("the integer for the key you pressed is: %i and the char code is: %c\r\n",keyPress, keyPress);

    if(keyPress == 50)
    {
        printf("the only current script you can run is the debugger.\r\n");
    };

    getc(stdin);
    getc(stdin);

    return 0;

}

Comments

Popular posts from this blog

thoughts