hi everyone
i am just struggling a little on my while loops
i want the loop to save the character so it can build up a name e.g.
Code:
char *pos = strchr(buffer, 'R');
int posa = pos-buffer;
while (buffer != posa)
{
this is where i have got now i want it so while it is not equal to posa ('R') then for it to store what the content of buffer currently is
so buffer[0] might be f
buffer [1] might be i
buffer [2] might be l
buffer [3] might be l
buffer [4] might be R
so now it will store the whole word 'fill'
all replies are appreciated thanks