while((long)ptr > 1 && (long)ptr < (long)buffer+taille) { // walk to the end
Why are you casting ptr to a long, when:
- It is NOT a pointer
- It is a char
?
Make ptr a pointer! Do NOT cast it.
while((long)ptr > 1 && (long)ptr < (long)buffer+taille) { // walk to the end
Why are you casting ptr to a long, when:
Make ptr a pointer! Do NOT cast it.