Difference between revisions of "Talk:Team B Fallen Coders - oop344 20111"

From CDOT Wiki
Jump to: navigation, search
(coding help discussion)
 
(malloc)
 
Line 1: Line 1:
Post here any help you need with functions...
+
= malloc function =
 +
 
 +
syntax : malloc(size)
 +
 
 +
it allocated memory of given size... u can assign it to pointer & u can use that memory...
 +
 
 +
 
 +
i.e. buffer = (char*) malloc(<str size>);
 +
 
 +
ok try & code on this.. if u have any question..post

Latest revision as of 19:36, 15 February 2011

malloc function

syntax : malloc(size)

it allocated memory of given size... u can assign it to pointer & u can use that memory...


i.e. buffer = (char*) malloc(<str size>);

ok try & code on this.. if u have any question..post