Browsing this Thread:
1 Anonymous Users
|
Re: STRPTR and stdlib
|
||||
|---|---|---|---|---|
|
Quite a regular
![]() |
Thanks. So it's totally "normal" to see a bunch of casts to char * and const char * when calling clib string functions.
Posted on: 2018/7/19 15:14
|
|||
|
||||
|
Re: STRPTR and stdlib
|
||||
|---|---|---|---|---|
|
Home away from home
![]() |
STRPTR is an Amiga specific definition defined in the original exec/types.h of AmigaOS includes and taken over by AROS for compatibility.
clib follows the ANSI standard which uses (const) char * as pointer to a string.
Posted on: 2018/7/17 19:29
|
|||
|
......
|
||||
|
||||
|
STRPTR and stdlib
|
||||
|---|---|---|---|---|
|
Quite a regular
![]() |
Is somebody able to explain the reasoning behind STRPTR (and CONST_STRPTR) defined in exec/types.h. I imagine these would be useful for cross-platform development but then I see (or write myself) code to cast into char* or const char* to use clib functions like strlen.
Am I missing something fundamental? Also a huge thank you to the Zune Paint authors. I'm finding the code to be very instructional on Zune/MUI.
Posted on: 2018/7/17 14:49
|
|||
|
||||
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.






