#include #include #include #include #define SIZE 1000 char qstring[200], *qinfo, keyword[50], acct_txt[4], acct_num[5], fname[20], lname[20], email[30], phone[20], pwd[21], user_pwd[21], me; int acct; int eq=0,amp=0,i=0,x; FILE *fp; int lift(char *source, char *target, char start, char end) { /*lift input string and copy to array*/ int size=1; while(*source != start) { source++; size++; } source++; while(*source!=end) { *(target++)=*(source++); size++; } *target='\0'; return size; } int lift_end(char *source, char *target, char start, char end) { /*dealing with situation where there may or may not be a checkbox field*/ int size=1; while(*source != start) { source++; size++; } source++; while(*source!=end) { *(target++)=*(source++); size++; if(*source=='\0') return 0; } *target='\0'; return size; } void itoa(int num) /*change an int to a string*/ { int x; for(x=2;x>=0;x--) { acct_txt[x]=(num%10)+48; num/=10; } acct_txt[3]='\0'; }