in reply to Re^2: OT: Why does malloc always give me 24?
in thread OT: Why does malloc always give me 24? [SOLVED]
First of all, that's not what I recommended. You still naming the type struct _host which makes no sense.
As for putting an uppercase "Host" in the middle of a function name, why would would do something silly like that. Or do you mean Host_push_back akin to Perl's Host::push_back? Definitely a gain since there's no equivalent to ::. Different things should look different.
And you didn't say what you'd use instead of Host host;. What would the following look like in your system?
Host host = Host_new();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: OT: Why does malloc always give me 24?
by karlgoethebier (Abbot) on Aug 19, 2024 at 05:17 UTC | |
by NERDVANA (Priest) on Aug 20, 2024 at 06:43 UTC | |
by karlgoethebier (Abbot) on Aug 20, 2024 at 08:49 UTC | |
by NERDVANA (Priest) on Aug 20, 2024 at 23:19 UTC | |
by karlgoethebier (Abbot) on Aug 21, 2024 at 13:11 UTC | |
| |
|
Re^4: OT: Why does malloc always give me 24?
by karlgoethebier (Abbot) on Aug 19, 2024 at 06:53 UTC | |
by NERDVANA (Priest) on Aug 20, 2024 at 06:05 UTC |