From: | Alexander Niven-Jenkins |
Date: | 10 Aug 2001 at 19:22:41 |
Subject: | [amiga-c] Re: STRPTR + CopyMem |
Hiya Twelvebullets,
On 10-Aug-01, Twelvebullets wrote:
> STRPTR Name;
> APTR Mem;
> Mem = AllocMem(200, MEMF_CLEAR | MEMF_PUBLIC);
> Copy STRPTR to Mem ???
It's up to you.
If you know the size of the memory you could manually iterate through
each byte in "Name" copying it to "Mem"; you could use memcpy(); if "Name"
is NULL terminated you could use strcpy() or strcpyn().
See a document on ANSI C for this stuff.
Kind regards...
Alex
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Small business owners...
Tell us what you think!
http://us.click.yahoo.com/vO1FAB/txzCAA/ySSFAA/dpFolB/TM
---------------------------------------------------------------------~->
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/