Here is how I coded my program. This is finished exactly as darkvee had mentioned.
#include "DarkGDK.h"
void DarkGDK( void )
{
int length = 0; // used to obtain length of input in array
char* buffer = ""; // used to retrieve input from dbEntry();
char userInput[20] = ""; // used to print input to screen
dbSyncOn();
dbSyncRate(60);
while( LoopGDK() )
{
dbText(250,250, userInput);
if(dbScanCode() > 0 && length <= 20) // Inerts characters upon type
{
buffer = dbEntry(); // writes buffer letters to the char*
strcat(userInput, buffer); // appends the user entry to the input array
dbClearEntryBuffer(); // clears the buffer to begin next input to add on to the input array
length = strlen(userInput); // gets the length of the char*
}
if(length != 0 && dbKeyState(0x0E) == 1) // Backspaces Characters
{
userInput[length - 2] = '\0';
dbWait(100);
}
dbSync();
}
~Loving Jesus Christ~