Hello,
according to the manual, sizeof() can not be used in expressions (stated on the page about structs).
However, a user has pointed out that sizeof() works in expressions, when a typecast to int is used:
malloc((int)sizeof(datatype) * n)
I would like to know, how save this method is.
At a first glance this workaround does the job fine (and its just written less verbosely).