strcpy((pData + (i + offset) ), pSeparator);
----------------------------------
pData[i + offset ] = pSeparator[0];
pData[i + offset + 1] = pSeparator[1];
pData[i + offset + 2] =...
Type: Posts; User: gmrobert
strcpy((pData + (i + offset) ), pSeparator);
----------------------------------
pData[i + offset ] = pSeparator[0];
pData[i + offset + 1] = pSeparator[1];
pData[i + offset + 2] =...
static UInt16 doWriteNull(Char *pData, UInt16 offset, Char *pSeparator, UInt16 i)
{
pData[i + offset ] = pSeparator[0];
pData[i + offset + 1] = pSeparator[1];
pData[i + offset + 2] =...
I want pDataOffset to point to pData offset by (i+offset)
Can I do that?
I can cast pData in the function, but I still cannot compile.
What I want to do is write the 3 character string in pSeparator to the data chunk pData at the point i+offset bytes from the start of...
Am I blind ... where is it missing?
I tried that but my compiler doesn't like it, I get:
Error : illegal implicit conversion from 'char' to 'char *'
Compress.cpp line 74 pDataOffset = ((Char *)pData)[i+*offset];
...
I would like to have the pointer pDataOffset point to the chunk of data pData but to the byte (offset + i) from the first byte in pData.
static void doWriteNull(MemPtr dData, UInt16 *offset,...
Can you see my screen from there?
My compiler (Code Warrior) is not liking when I use a define in my do...while:
#define sepMatch 1;
#define sepNoMatch 0;
do{
// stuff
Mats,
Thank you not only did you help me understand pointers but I also learned more about modulus as well.
Thanks
Greg
Mats,
You are correct about MemPtr.
Thank you for pointing me in the right direction. ;)
MacGyver,
Char is char, Palm OS uses different names for reasons unknown to me.
I would like to transfer the byte in the memory chunk pData that is i bytes from the start of pData to the memory chunk newData that is (i+offset) bytes from the start of newData:
Is there a...
doRandomByte()
I am trying to point to the least significant byte in numRandom:
pByteRandom = (Int8 *)&numRandom+1;
make sure it is not NUL (or 0x00), and simply make it 1 if it is:
I am self-taught so for me I always have issues with understanding pointers. I understand the basics but when I try and do something complicated, I can usually figure it out but it is not very clean...