Timeline for realloc struct of array inside function
Current License: CC BY-SA 3.0
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 20, 2013 at 22:23 | vote | accept | Zn3 | ||
| Oct 20, 2013 at 2:20 | comment | added | Zn3 |
I get error: request for member ' ' in something not a structure or union. fgets(*movie[index].name, 40, stdin); *movie[index].id = input_number(&movie[index].id);
|
|
| Oct 20, 2013 at 2:16 | history | edited | Zn3 | CC BY-SA 3.0 |
update of code
|
| Oct 18, 2013 at 19:09 | comment | added | Zn3 |
I am incrementing records after variable inputs have been done
|
|
| Oct 18, 2013 at 18:58 | comment | added | Ferenc Deak |
you should increment the records in your code.
|
|
| S Oct 18, 2013 at 18:57 | history | suggested | krsteeve | CC BY-SA 3.0 |
fix up formatting
|
| Oct 18, 2013 at 18:56 | answer | added | Carl Norum | timeline score: 3 | |
| Oct 18, 2013 at 18:55 | review | Suggested edits | |||
| S Oct 18, 2013 at 18:57 | |||||
| Oct 18, 2013 at 18:55 | comment | added | Carl Norum |
You don't need to cast the return value of malloc or realloc in a C program.
|
|
| Oct 18, 2013 at 18:53 | history | asked | Zn3 | CC BY-SA 3.0 |