Question on sbrk()!!!!!!!!!!!!!!help!!!!!!!

This is a discussion on Question on sbrk()!!!!!!!!!!!!!!help!!!!!!! within the Linux Programming forums, part of the Platform Specific Boards category; i am new user of linux programming!! as i know. some Unix implementations of malloc () user sbrk () system ...

  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    15

    Talking Question on sbrk()!!!!!!!!!!!!!!help!!!!!!!

    i am new user of linux programming!!
    as i know. some Unix implementations of malloc () user sbrk () system call to get more memory for use.
    but, i have a question---> how sbrk () gets memory from the operationg system??
    and what does sbrk (0) do ?? what can it be used for ??
    what if i change it to sbrk (1)??
    will be it be any different??
    thanks!!!

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,755
    Is there something wrong with your ! key?

    Try
    man sbrk
    http://www.hmug.org/man/2/sbrk.php

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Alice....
    By Lurker in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 06-20-2005, 03:51 PM
  2. Debugging question
    By o_0 in forum C Programming
    Replies: 9
    Last Post: 10-10-2004, 06:51 PM
  3. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 01:52 PM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 10:47 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 01:47 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21