Hi! I know this has been raised so many times. But no recommendations from the previous questions worked for me...
I have 2 fgets() in a row:
printf("Please enter title:");
// Making sure...
Type: Posts; User: weareandrei
Hi! I know this has been raised so many times. But no recommendations from the previous questions worked for me...
I have 2 fgets() in a row:
printf("Please enter title:");
// Making sure...
Hello!
My fgets function never stops, although I set the limit to the string length that is excepted.
char string[100];
...
case 1: {
//scanf(" %s",string);
So If I do:
char *name;
Then I could practiacally have an unlimited space? Because name points to some location 1000 for example:
[1000] [1001] [1002] [1003] [1004] [1005] [1006] [1007]...
I know that a string is basically a pointer to the first character, and the next memory adresses will contain the next characters until the \n indicates the end of the string. But do we need to...
Hi! I have a struct
struct Human {
char *name;
int age;
};
I am trying to save and then read from textfile. I am doing this: