>wrote my final exam for the end of highschool today
>technically yesterday
>today is my birthday
>today i solved a very simple code fix
>tomorrow i am going to fuck my bitch because of how greatful I am to solve this problem
>love for the null terminator
>pic somewhat related to my dreams
>what do you think?void write() { //create an account
char user[50], pwd[50];
char extra[] = "\0";
printf("\nUsername: ");
scanf("%s", user);
printf("Password: ");
scanf("%s", pwd);
FILE *info;
info = fopen("info.csv", "a");
fprintf(info, "%s,%s,%s\n", user, pwd, extra);
fclose(info);
system("clear");
options();
}
I hope nobody remembers your birthday
>>55550234
I hope your bitch goes to a tanning salon and when she gets in a tanning bed, it malfunctions and she gets cooked alive in it, crying little a little bitch until her last breath. That's how much I hate OP.
>>55550234
"\0" is the NULL literal. It is a single character and doesn't need to be put in an array. Think of it like \n being singular, so is \0.
I think you could make
fprintf(info, "%s,%s,%s\n", user, pwd, extra);
intofprintf(info, "%s,%s,%s\n", user, pwd, "\0");
and removechar extra[] = "\0";
>>55550234
>i am going to fuck my bitch
5/5 cringe, kid.
>>55550234
hope your bitch doesn't get any dog treats.
>>55551560
absolutely brilliant
"i mean, once it goes through the compiler, does anything else really matter"
>>55550234
Poo in löö pajeet
>high school
mods