Timeline for C struct or pointer to struct?
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 15, 2014 at 4:43 | history | tweeted | twitter.com/#!/StackCodeReview/status/444695449354919936 | ||
Mar 15, 2014 at 0:45 | comment | added | Manu343726 |
You are not using signed integers to represent sizes/indices (Well done), but note that the standard library provide an specific type for this purpose: size_t
|
|
Mar 14, 2014 at 22:01 | vote | accept | Atomix | ||
Mar 14, 2014 at 20:45 | answer | added | ChrisW | timeline score: 4 | |
Mar 14, 2014 at 20:20 | vote | accept | Atomix | ||
Mar 14, 2014 at 22:01 | |||||
Mar 14, 2014 at 20:20 | vote | accept | Atomix | ||
Mar 14, 2014 at 20:20 | |||||
Mar 14, 2014 at 20:15 | answer | added | 200_success | timeline score: 1 | |
Mar 14, 2014 at 19:51 | review | First posts | |||
Mar 14, 2014 at 20:32 | |||||
Mar 14, 2014 at 19:51 | comment | added | Midhun MP |
Use memset instead of bzero . But it is better to use calloc than using malloc + memset
|
|
Mar 14, 2014 at 19:45 | comment | added | Atomix | because the memory returned by malloc() is not initialized, I'm setting it to all zeros. | |
Mar 14, 2014 at 19:39 | comment | added | Midhun MP |
What is the use of this bzero ?
|
|
Mar 14, 2014 at 19:35 | history | asked | Atomix | CC BY-SA 3.0 |