Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
rat9988
· 7y ago · 0 comments
Truly curious as I don't code in C, or any other low level language. What is the problem with it? That there might not be enough memory allocated at *q?
Comments
[–]
microtherion
7y ago
Not enough memory at *p. The loop performs the exact same function that strcpy does, and some people just write it out by hand.
[–]
zsrxx
7y ago
It doesn't stop until *p is \0, so yes