narazil som na jednu vetu, ktoru proste nedokazem spravne prelozit/pochopit. stale neviem co tym chcel basnik povedat.
However, many still prefer to cast malloc because they feel it makes the intentions of the memory allocation more clear. There is nothing wrong with this except in the event that stdlib.h, the header which declares malloc, is not included. If the return of malloc is cast then the error which would be flagged is hidden, resulting in a difficult to find bug. Also, during maintenance, if the type of the pointer changes but the cast is not changed, once again there is a difficult to find bug. The method most experienced programmers choose is:
nenajde sa tu niekto, kto by mi to vedel (zvyraznenu vetu) spravne prelozit/vysvetlit? :)