Browsing this Thread:
1 Anonymous Users
|
Re: realloc()?
|
||||
|---|---|---|---|---|
|
Quite a regular
![]() |
I missed your link earlier. Thanks for that.
Posted on: 2018/4/14 18:55
|
|||
|
||||
|
Re: realloc()?
|
||||
|---|---|---|---|---|
|
Home away from home
![]() |
Quote:
To elaborate: c uses it's own memory manager, and mixing those with api calls would interfere with its 'management'. In that respect my link was meant to show you that it is trivial to implement ![]()
Posted on: 2018/4/14 17:47
|
|||
|
||||
|
Re: realloc()?
|
||||
|---|---|---|---|---|
|
Quite a regular
![]() |
Nice! Will do that thanks.
Posted on: 2018/4/14 16:03
|
|||
|
||||
|
Re: realloc()?
|
||||
|---|---|---|---|---|
|
Home away from home
![]()
|
Quote:
It would be more consistent to use CopyMem().
Posted on: 2018/4/14 15:57
|
|||
|
||||
|
Re: realloc()?
|
||||
|---|---|---|---|---|
|
Quite a regular
![]() |
OK, it was trivial to implement using AllocMem, FreeMem and memcpy. Thank you!
Posted on: 2018/4/14 6:04
|
|||
|
||||
|
Re: realloc()?
|
||||
|---|---|---|---|---|
|
Home away from home
![]()
|
Quote:
No. Don't mix C and Exec memory functions.
Posted on: 2018/4/13 6:03
|
|||
|
AROS - Make code, not war :knuddel:
|
||||
|
||||
|
Re: realloc()?
|
||||
|---|---|---|---|---|
|
Quite a regular
![]() |
So that'd be safe to use with memory allocated with AllocMem? Would make sense if it did I guess.
Posted on: 2018/4/13 4:32
|
|||
|
||||
|
Re: realloc()?
|
||||
|---|---|---|---|---|
|
Home away from home
![]() |
Unless using a compiler (program language specific) that offers such functionality.
for example AROS' stdc implements realloc().
Posted on: 2018/4/12 22:45
|
|||
|
||||
|
Re: realloc()?
|
||||
|---|---|---|---|---|
|
Home away from home
![]()
|
No, I don't think there's a function like that.
Posted on: 2018/4/12 18:50
|
|||
|
||||
You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.







