const char* dataworks_version = "0.1.0";
const char* dataworks_compile_date = __DATE__;
const char* dataworks_copyright = "Copyright (c) Crabware 2024\n"
+ " pnsk-lab 2024\n"
" Crabware is the software-development division of\n"
" Hinode Gakuen PC-Club. Contact: <nishi@nishi.boats>";
@$(MAKE) thanks-banner
thanks-banner:
- @echo "************************************"
- @echo "* *"
- @echo "* Thanks for choosing DataWorks. *"
- @echo "* - Nishi <nishi@nishi.boats> *"
- @echo "* *"
- @echo "************************************"
+ @echo "+-----------------------------------------+"
+ @echo "| |"
+ @echo "| Thanks for choosing DataWorks. |"
+ @echo "| - Nishi <nishi@nishi.boats> |"
+ @echo "| |"
+ @echo "+-----------------------------------------+"
./Grammar::
$(MAKE) -C $@ $(COMPILE_FLAGS)
int main(int _argc, char** _argv) {
printf("DataWorks Remote Client version %s %s %s\n", dataworks_get_version(), dataworks_get_compile_date(), dataworks_get_platform());
+ printf("\n");
+ printf("%s\n", dataworks_get_copyright());
+ printf("\n");
argc = _argc;
argv = _argv;
bool auth = false;
int ch = getchar();
#endif
if(ch == EOF || ch == match) {
- if(ch == EOF){
+ if(ch == EOF) {
free(username);
free(password);
goto go_quit;
int ch = getchar();
#endif
if(ch == EOF || ch == match) {
- if(ch == EOF){
+ if(ch == EOF) {
free(username);
free(password);
goto go_quit;
if(strcmp(entries[j]->pass, buf + i + 1) == 0) {
writeline(sock, "LOGIN");
login = true;
+ printf("User %s is in\n", user);
break;
} else {
writeline(sock, "ERROR:INVALID_PASSWORD");
signal(SIGINT, exitnow);
signal(SIGTERM, exitnow);
printf("DataWorks Server version %s %s %s\n", dataworks_get_version(), dataworks_get_compile_date(), dataworks_get_platform());
+ printf("\n");
+ printf("%s\n", dataworks_get_copyright());
+ printf("\n");
int st;
if((st = server_init()) != 0) return st;
if(auth) {